84% unlimited-page-sidebars

Code Review | Unlimited Page Sidebars

WordPress plugin Unlimited Page Sidebars scored84%from 54 tests.

About plugin

  • Plugin page: unlimited-page-si...
  • Plugin version: 0.2.5
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Sep 13, 2012
  • Latest release: Aug 10, 2023
  • Number of updates: 62
  • Update frequency: every 64.2 days
  • Top authors: edersonpeka (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

200+ active /6,855 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▼2.80ms] Passed 4 tests

Analyzing server-side resources used by Unlimited Page Sidebars
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1142.33 ▲4.11
Dashboard /wp-admin3.42 ▲0.1150.57 ▲0.53
Posts /wp-admin/edit.php3.47 ▲0.1147.50 ▼3.77
Add New Post /wp-admin/post-new.php6.00 ▲0.1190.43 ▼9.40
Media Library /wp-admin/upload.php3.35 ▲0.1137.67 ▲1.44
Unlimited Page Sidebars /wp-admin/options-general.php?page=pagesidebars-options3.3234.71

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Unlimited Page Sidebars
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.21 ▼1.211.70 ▼0.0945.00 ▼3.03
Dashboard /wp-admin2,210 ▲255.79 ▼0.05101.03 ▼2.1738.79 ▼1.25
Posts /wp-admin/edit.php2,090 ▼21.98 ▼0.0234.28 ▼6.0934.20 ▼3.06
Add New Post /wp-admin/post-new.php1,517 ▼1617.53 ▼5.65699.66 ▲74.4656.44 ▲3.71
Media Library /wp-admin/upload.php1,392 ▲104.40 ▲0.15109.09 ▲8.2549.39 ▲5.40
Unlimited Page Sidebars /wp-admin/options-general.php?page=pagesidebars-options8502.0228.5630.47

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 2× 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/unlimited-page-sidebars/unlimited-page-sidebars.php:542
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/unlimited-page-sidebars/unlimited-page-sidebars.php:542

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: sidebars, pages, cms

unlimited-page-sidebars/unlimited-page-sidebars.php Passed 13 tests

The principal PHP file in "Unlimited Page Sidebars" v. 0.2.5 is loaded by WordPress automatically on each request
73 characters long description:
Allows assigning one specific widget area (sidebar) to each page or post.

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
Success! There were no dangerous files found in this plugin683 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP22971445
JavaScript100110
PO File13234100
Markdown111022
CSS1006

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity59.00
▷ Minimum class complexity59.00
▷ Maximum class complexity59.00
Average method complexity3.64
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods22
▷ Static methods22100.00%
▷ Public methods22100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
There were not PNG files found in your plugin