84% arbitrary-sidebars

Code Review | Arbitrary Sidebars

WordPress plugin Arbitrary Sidebars scored84%from 54 tests.

About plugin

  • Plugin page: arbitrary-sidebars
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-3.5
  • WordPress version: 6.3.1
  • First release: Sep 24, 2012
  • Latest release: Sep 25, 2012
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: chrisguitarguy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,544 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼1.87ms] Passed 4 tests

Server-side resources used by Arbitrary Sidebars
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.82 ▼6.90
Dashboard /wp-admin3.32 ▲0.0249.88 ▼1.34
Posts /wp-admin/edit.php3.37 ▲0.0148.66 ▲2.45
Add New Post /wp-admin/post-new.php5.90 ▲0.0194.84 ▲3.40
Media Library /wp-admin/upload.php3.24 ▲0.0134.53 ▼1.67
Sidebars /wp-admin/themes.php?page=arbitrary-sidebars3.1828.57

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

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

Browser metrics Passed 4 tests

Arbitrary Sidebars: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.20 ▼1.091.69 ▼0.2141.05 ▼2.83
Dashboard /wp-admin2,210 ▲225.88 ▲1.00106.90 ▼6.7240.93 ▼4.58
Posts /wp-admin/edit.php2,096 ▲72.03 ▲0.0239.55 ▲1.6835.40 ▼0.10
Add New Post /wp-admin/post-new.php1,550 ▲1418.44 ▼4.70631.88 ▼33.5983.63 ▲5.37
Media Library /wp-admin/upload.php1,392 ▲44.22 ▲0.0096.81 ▼9.1139.99 ▼5.29
Sidebars /wp-admin/themes.php?page=arbitrary-sidebars8022.0524.7423.97

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

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

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: widget, sidebar, sidebars

arbitrary-sidebars/arbitrary-sidebars.php 85% from 13 tests

The principal PHP file in "Arbitrary Sidebars" v. 1.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Domain Path: The domain path folder does not exist ("/lang")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

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 detected388 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP4115295388

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity12.67
▷ Minimum class complexity3.00
▷ Maximum class complexity26.00
Average method complexity2.13
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes133.33%
Methods31
▷ Static methods2374.19%
▷ Public methods2270.97%
▷ Protected methods412.90%
▷ Private methods516.13%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants116.67%
▷ Class constants583.33%
▷ Public constants5100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin