83% classic-widgets

Code Review | Classic Widgets

WordPress plugin Classic Widgets scored83%from 54 tests.

About plugin

  • Plugin page: classic-widgets
  • Plugin version: 0.3
  • PHP compatiblity: 5.6 or later+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.9
  • WordPress version: 6.3.1
  • First release: May 5, 2021
  • Latest release: Aug 10, 2023
  • Number of updates: 11
  • Update frequency: every 75.2 days
  • Top authors: azaozz (54.55%)hellofromTonya (45.45%)ironprogrammer (18.18%)

Code review

54 tests

User reviews

244 reviews

Install metrics

2,000,000+ active /4,534,850 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼7.22ms] Passed 4 tests

Server-side resources used by Classic Widgets
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.56 ▼1.89
Dashboard /wp-admin3.31 ▲0.0147.88 ▼5.15
Posts /wp-admin/edit.php3.36 ▲0.0049.09 ▼5.86
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.03 ▼14.88
Media Library /wp-admin/upload.php3.23 ▲0.0031.53 ▼2.99

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Classic Widgets
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.34 ▼0.011.95 ▲0.3140.71 ▲0.08
Dashboard /wp-admin2,195 ▲155.52 ▼0.1297.41 ▲4.7140.72 ▼1.73
Posts /wp-admin/edit.php2,100 ▼31.98 ▼0.0138.57 ▼2.3635.78 ▼4.41
Add New Post /wp-admin/post-new.php1,535 ▲918.28 ▼4.69625.08 ▼90.4163.76 ▲8.03
Media Library /wp-admin/upload.php1,394 ▼64.21 ▲0.0699.31 ▼3.1146.58 ▲1.29

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/classic-widgets/classic-widgets.php

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 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Requires php: Invalid version format
The official readme.txt is a good inspiration

classic-widgets/classic-widgets.php 85% from 13 tests

"Classic Widgets" version 0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Domain Path: The domain path folder does not exist ("/languages")
  • Requires PHP: Please use periods and digits for the required version (ex. "7.0" instead of "5.6 or later")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected326 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
Markdown1800320
PHP12256

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.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

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