78% sliding-panel

Code Review | Sliding Panel

WordPress plugin Sliding Panel scored78%from 54 tests.

About plugin

  • Plugin page: sliding-panel
  • Plugin version: 0.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-3.7
  • WordPress version: 6.3.1
  • First release: Jun 26, 2009
  • Latest release: Oct 11, 2013
  • Number of updates: 5
  • Update frequency: every 313.8 days
  • Top authors: greenshady (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active /36,083 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼5.86ms] Passed 4 tests

A check of server-side resources used by Sliding Panel
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0337.31 ▼2.08
Dashboard /wp-admin3.37 ▲0.0351.00 ▼8.17
Posts /wp-admin/edit.php3.48 ▲0.1344.81 ▼2.61
Add New Post /wp-admin/post-new.php5.95 ▲0.0685.17 ▼10.56
Media Library /wp-admin/upload.php3.29 ▲0.0635.95 ▲4.47
Sliding Panel /wp-admin/themes.php?page=sliding-panel3.2327.76

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Sliding Panel: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.16 ▼1.251.71 ▼0.1241.97 ▼1.38
Dashboard /wp-admin2,213 ▲274.88 ▼0.0899.13 ▼11.7837.95 ▼6.81
Posts /wp-admin/edit.php2,093 ▲42.01 ▼0.0035.35 ▼1.1335.12 ▲0.49
Add New Post /wp-admin/post-new.php1,545 ▲3118.57 ▲0.94653.47 ▼35.1759.31 ▲8.26
Media Library /wp-admin/upload.php1,395 ▲74.13 ▼0.1098.54 ▼6.4942.03 ▼0.98
Sliding Panel /wp-admin/themes.php?page=sliding-panel8562.0221.9933.36

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
    • > GET request to /wp-admin/themes.php?page=sliding-panel
    • > 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
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sliding-panel/sliding-panel.php:68
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_active_sidebar() in wp-content/plugins/sliding-panel/inc/sidebar-sliding-panel.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sliding-panel/admin/admin.php:51

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Screenshots: Add an image for screenshot #1 (Sliding panel in its open view with widgets.)
Please take inspiration from this readme.txt

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

The main file in "Sliding Panel" v. 0.2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
62 characters long description:
A fully-widgetized and responsive sliding panel for your site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected354 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP386246214
CSS131593
JavaScript16025
Markdown114022

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.10
Average class complexity3.50
▷ Minimum class complexity3.00
▷ Maximum class complexity4.00
Average method complexity1.26
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes2100.00%
Methods19
▷ Static methods210.53%
▷ Public methods19100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 compressed PNG file occupies 0.02MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png17.56KB16.99KB▼ 3.20%