68% pageslide

Code Review | WP PageSlide Plugin

WordPress plugin WP PageSlide Plugin scored68%from 54 tests.

About plugin

  • Plugin page: pageslide
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.6
  • WordPress version: 6.3.1
  • First release: Sep 13, 2013
  • Latest release: Sep 13, 2013
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: Muneeb (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,952 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.95MB] [CPU: ▼38.55ms] Passed 4 tests

Analyzing server-side resources used by WP PageSlide Plugin
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0034.21 ▼6.04
Dashboard /wp-admin3.00 ▼0.3120.41 ▼35.36
Posts /wp-admin/edit.php3.00 ▼0.3622.45 ▼29.93
Add New Post /wp-admin/post-new.php3.00 ▼2.8923.05 ▼75.39
Media Library /wp-admin/upload.php3.00 ▼0.2320.71 ▼13.51

Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by WP PageSlide Plugin
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,899 ▲15313.72 ▼0.655.38 ▲3.6039.12 ▲1.92
Dashboard /wp-admin2,218 ▲276.04 ▲1.18111.15 ▲5.1743.51 ▲4.19
Posts /wp-admin/edit.php2,104 ▲152.01 ▲0.0237.09 ▼3.8139.04 ▲3.29
Add New Post /wp-admin/post-new.php1,375 ▼16720.71 ▲2.60598.16 ▼5.1136.25 ▼22.96
Media Library /wp-admin/upload.php1,397 ▲64.31 ▲0.1596.22 ▼3.8737.61 ▼5.43

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Uninstall procedure had uncaught errors
    • > Warning in wp-content/plugins/pageslide/includes/classes/class-wpps-settings.php+50
    Use of undefined constant POPUP_PLUGIN_CAPABILITY - assumed 'POPUP_PLUGIN_CAPABILITY' (this will throw an Error in a future version of PHP)
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/pageslide/views/public/slide.php
  • 8× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/pageslide/config.php:3
    • > PHP Notice
      Undefined variable: options in wp-content/plugins/pageslide/views/public/slide.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/pageslide/views/admin/metabox-general.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/pageslide/views/admin/plugin_actiavtion_notice.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/pageslide/views/admin/settings-saved.php:2
    • > PHP Notice
      Undefined variable: content in wp-content/plugins/pageslide/views/public/slide.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_meta_boxes() in wp-content/plugins/pageslide/views/admin/settings-page.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/pageslide/page-slide.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Tags: Too many tags (14 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

pageslide/page-slide.php 92% from 13 tests

Analyzing the main PHP file in "WP PageSlide Plugin" version 1.0
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("pageslide.php" instead of "page-slide.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected437 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP1016415303
CSS2223117
JavaScript151017

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity9.50
▷ Minimum class complexity2.00
▷ Maximum class complexity17.00
Average method complexity1.94
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods18
▷ Static methods15.56%
▷ Public methods18100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants10100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected