89% pojo-sidebars

Code Review | Pojo Sidebars

WordPress plugin Pojo Sidebars scored89%from 54 tests.

About plugin

  • Plugin page: pojo-sidebars
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-6.3
  • WordPress version: 6.3.1
  • First release: Apr 23, 2015
  • Latest release: Jul 23, 2023
  • Number of updates: 26
  • Update frequency: every 116.2 days
  • Top authors: KingYes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10,000+ active /102,991 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼0.80ms] Passed 4 tests

A check of server-side resources used by Pojo Sidebars
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0440.10 ▲3.35
Dashboard /wp-admin3.33 ▲0.0251.86 ▲6.61
Posts /wp-admin/edit.php3.38 ▲0.0245.44 ▲1.06
Add New Post /wp-admin/post-new.php5.91 ▲0.0291.46 ▼9.68
Media Library /wp-admin/upload.php3.25 ▲0.0232.29 ▲2.08
Sidebars /wp-admin/edit-tags.php?taxonomy=pojo_sidebars3.2535.77

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Pojo Sidebars
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8314.44 ▲0.121.86 ▲0.0444.22 ▲2.00
Dashboard /wp-admin2,207 ▲165.83 ▲0.9799.85 ▲0.0736.84 ▼6.31
Posts /wp-admin/edit.php2,093 ▲12.01 ▼0.0336.22 ▼1.2629.60 ▼4.81
Add New Post /wp-admin/post-new.php1,545 ▲318.25 ▲0.22595.32 ▼27.2354.23 ▼3.87
Media Library /wp-admin/upload.php1,392 ▲14.21 ▲0.0193.11 ▼4.4341.63 ▼4.47
Sidebars /wp-admin/edit-tags.php?taxonomy=pojo_sidebars1,2282.2825.2829.93

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% 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
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
  • Screenshots: Add images for these screenshots: #1 (Dashboard), #2 (Widgets Area), #3 (Widgets Area 2)
The official readme.txt is a good inspiration

pojo-sidebars/pojo-sidebars.php 92% from 13 tests

"Pojo Sidebars" version 1.0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 149 characters long)

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
Good job! No executable or dangerous file extensions detected259 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP46045213
PO File1162346

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity4.50
▷ Minimum class complexity2.00
▷ Maximum class complexity12.00
Average method complexity1.64
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes4100.00%
Methods22
▷ Static methods14.55%
▷ Public methods2090.91%
▷ Protected methods14.55%
▷ Private methods14.55%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.58MB with 0.38MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png214.03KB73.26KB▼ 65.77%
screenshot-1.png162.56KB55.69KB▼ 65.74%
screenshot-3.png213.69KB73.53KB▼ 65.59%