10% schemeable-sliding-panel

Code Review | Schemeable Sliding Panel

WordPress plugin Schemeable Sliding Panel scored10%from 54 tests.

About plugin

  • Plugin page: schemeable-slidin...
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-3.4.2
  • WordPress version: 6.3.1
  • First release: Oct 6, 2012
  • Latest release: Dec 4, 2012
  • Number of updates: 17
  • Update frequency: every 3.8 days
  • Top authors: kdmurthy (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /9,900 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/schemeable-sliding-panel/php-markdown-1.0.1o/markdown.php+910
    Array and string offset access syntax with curly braces is deprecated

Server metrics [RAM: ▼1.63MB] [CPU: ▼53.35ms] Passed 4 tests

Server-side resources used by Schemeable Sliding Panel
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.36 ▼1.115.58 ▼36.53
Dashboard /wp-admin2.38 ▼0.936.99 ▼39.68
Posts /wp-admin/edit.php2.38 ▼0.986.96 ▼44.44
Add New Post /wp-admin/post-new.php2.38 ▼3.515.92 ▼92.75
Media Library /wp-admin/upload.php2.38 ▼0.856.47 ▼26.04
Sliding Panel Options /wp-admin/themes.php?page=sliding-panel-options2.536.53

Server storage [IO: ▲1.48MB] [DB: ▲0.01MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 67 new files
Database: no new tables, 8 new options
New WordPress options
sliding-panel-dashboard-menus
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_recent-comments
sliding-panel-options
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Schemeable Sliding Panel
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,992 ▲24613.95 ▼0.4314.34 ▲12.5547.75 ▲1.98
Dashboard /wp-admin2,210 ▲285.86 ▲0.96109.26 ▼4.0941.23 ▼4.70
Posts /wp-admin/edit.php2,093 ▲71.99 ▲0.0134.71 ▼2.1033.52 ▼1.98
Add New Post /wp-admin/post-new.php1,545 ▲1023.07 ▼0.08702.31 ▲97.1760.14 ▲9.53
Media Library /wp-admin/upload.php1,386 ▼54.21 ▲0.0599.58 ▲0.1341.73 ▼1.22
Sliding Panel Options /wp-admin/themes.php?page=sliding-panel-options4,9333.9792.07123.92

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/schemeable-sliding-panel/php-markdown-1.0.1o/markdown.php+910
    Array and string offset access syntax with curly braces is deprecated
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • sliding-panel-options
    • sliding-panel-dashboard-menus
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
  • 10 occurences, only the last one shown
    • > GET request to /wp-admin/themes.php?page=sliding-panel-options
    • > Deprecated in wp-content/plugins/schemeable-sliding-panel/php-markdown-1.0.1o/markdown.php+1562
    Array and string offset access syntax with curly braces is deprecated
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/themes.php?page=sliding-panel-options
    • > Deprecated in wp-content/plugins/schemeable-sliding-panel/php-markdown-1.0.1o/markdown.php+191
    Methods with the same name as their class will not be constructors in a future version of PHP; Markdown_Parser has a deprecated constructor
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/themes.php?page=sliding-panel-options
    • > Warning in wp-content/plugins/schemeable-sliding-panel/schemes.php+229
    scandir(wp-content/uploads/sliding-panel-schemes): failed to open dir: No such file or directory
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/themes.php?page=sliding-panel-options
    • > Warning in wp-content/plugins/schemeable-sliding-panel/schemes.php+229
    scandir(): (errno 2): No such file or directory
    • > GET request to /wp-admin/themes.php?page=sliding-panel-options
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/themes.php?page=sliding-panel-options
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/themes.php?page=sliding-panel-options
    • > Notice in wp-content/plugins/schemeable-sliding-panel/css/slide.css.php+26
    Only variables should be passed by reference

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/schemeable-sliding-panel/templates/sliding-panel-scheme-export.php.php
    • > /wp-content/plugins/schemeable-sliding-panel/templates/sliding-panel-scheme.php.php
  • 27× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Notice
      Undefined variable: scheme in wp-content/plugins/schemeable-sliding-panel/templates/sliding-panel-scheme.php.php on line 15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/schemeable-sliding-panel/default-schemes/default.php:66
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/schemeable-sliding-panel/css/slide.css.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/schemeable-sliding-panel/meta_boxes/spread-the-word.php:194
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/schemeable-sliding-panel/default-schemes/green-meadows.php:76
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/schemeable-sliding-panel/meta_boxes/share-scheme.php:250
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_upload_dir() in wp-content/plugins/schemeable-sliding-panel/schemes.php:3
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/schemeable-sliding-panel/slide.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_upload_dir() in wp-content/plugins/schemeable-sliding-panel/schemes.php:3
    • > PHP Notice
      Undefined variable: method_name in wp-content/plugins/schemeable-sliding-panel/templates/sliding-panel-scheme.php.php on line 12

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
    • > GET request to /wp-admin/themes.php?page=sliding-panel-options
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,farbtastic&ver=6.3.1 1:2740 Uncaught Error: no such method 'add' for tabs widget instance

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Configuring the Schemeable Sliding Panel.), #2 (Using the Wood Lands scheme on a page.)
The official readme.txt is a good inspiration

schemeable-sliding-panel/schemeable-sliding-panel.php Passed 13 tests

The principal PHP file in "Schemeable Sliding Panel" v. 1.4 is loaded by WordPress automatically on each request
125 characters long description:
Use smooth and beautiful sliding panel for your blog. Fully scheme-able and configurable. Bundled with six beautiful schemes.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected8,166 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP189786057,544
CSS358158478
JavaScript111392
Markdown226052

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity26.33
▷ Minimum class complexity1.00
▷ Maximum class complexity62.00
Average method complexity2.87
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods122
▷ Static methods1915.57%
▷ Public methods122100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions54
▷ Named functions54100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.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
40 compressed PNG files occupy 1.07MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/images/tab_m.png0.25KB0.27KB0.00%
default-schemes/images/tab_l-e0e0e0-292929.png0.32KB0.30KB▼ 4.94%
css/images/tab_r.png1.04KB1.13KB0.00%
default-schemes/images/batthern.png1.85KB1.90KB0.00%
default-schemes/images/tab_b-FADBAC-C3C3C3.png0.11KB0.11KB0.00%