84% wp-custom-sidebars

Code Review | WP Custom Sidebars

WordPress plugin WP Custom Sidebars scored 84% from 54 tests.

About plugin

  • Plugin page: wp-custom-sidebars
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.0
  • WordPress version: 6.3.1
  • First release: Oct 24, 2016
  • Latest release: Nov 26, 2018
  • Number of updates: 10
  • Update frequency: every 76.0 days
  • Top authors: mnmlthms (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

300+ active / 5,578 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.16MB] [CPU: ▲1.44ms] Passed 4 tests

A check of server-side resources used by WP Custom Sidebars
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0442.61 ▲3.77
Dashboard /wp-admin3.50 ▲0.2045.92 ▼2.04
Posts /wp-admin/edit.php3.61 ▲0.2649.25 ▲4.39
Add New Post /wp-admin/post-new.php6.10 ▲0.2294.72 ▲0.26
Media Library /wp-admin/upload.php3.42 ▲0.2037.75 ▲3.77
Sidebars /wp-admin/themes.php?page=wp-custom-sidebars3.4032.07

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for WP Custom Sidebars
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲7113.22 ▼1.171.69 ▼0.1943.56 ▼1.61
Dashboard /wp-admin2,212 ▲215.00 ▲0.17109.23 ▼5.5540.29 ▲1.82
Posts /wp-admin/edit.php2,099 ▲102.06 ▲0.0939.94 ▲1.6434.50 ▲2.60
Add New Post /wp-admin/post-new.php1,542 ▲2018.49 ▼4.94603.42 ▼66.9252.59 ▼3.23
Media Library /wp-admin/upload.php1,397 ▲124.28 ▲0.1196.19 ▼10.1543.58 ▼3.50
Sidebars /wp-admin/themes.php?page=wp-custom-sidebars9101.9227.1529.10

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-custom-sidebars/inc/public/main.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: widget, personalize, sidebars, custom-sidebars, sidebar...

wp-custom-sidebars/wp-custom-sidebars.php Passed 13 tests

The main PHP file in "WP Custom Sidebars" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
86 characters long description:
Create unlimited sidebars for pages/posts easily without writing a single line of code

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin1,175 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP6279413899
PO File14453127
JavaScript65435112
Sass25226
JSON10011
CSS2420

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity26.33
▷ Minimum class complexity4.00
▷ Maximum class complexity58.00
Average method complexity3.67
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes6100.00%
Methods57
▷ Static methods1017.54%
▷ Public methods5596.49%
▷ Protected methods11.75%
▷ Private methods11.75%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin