90% wp-ngd-widget-css-classes

Code Review | WP Widget CSS Classes

WordPress plugin WP Widget CSS Classes scored90%from 54 tests.

About plugin

  • Plugin page: wp-ngd-widget-css...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.1.1
  • WordPress version: 6.3.1
  • First release: Jul 8, 2020
  • Latest release: Feb 2, 2023
  • Number of updates: 15
  • Update frequency: every 62.6 days
  • Top authors: dipakparmar443 (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

300+ active /1,927 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

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

This is a short check of server-side resources used by WP Widget CSS Classes
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.54 ▼1.03
Dashboard /wp-admin3.33 ▲0.0245.96 ▼4.60
Posts /wp-admin/edit.php3.38 ▲0.0250.41 ▲1.82
Add New Post /wp-admin/post-new.php5.91 ▲0.0294.07 ▲0.50
Media Library /wp-admin/upload.php3.25 ▲0.0235.50 ▲0.96

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by WP Widget CSS Classes
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.23 ▼1.151.75 ▼0.3843.72 ▼2.14
Dashboard /wp-admin2,203 ▲155.82 ▲0.8998.89 ▼5.3036.66 ▼6.88
Posts /wp-admin/edit.php2,089 ▼02.18 ▲0.1739.44 ▲1.5834.71 ▲0.84
Add New Post /wp-admin/post-new.php1,542 ▼118.11 ▲0.18623.06 ▲32.0453.85 ▼3.39
Media Library /wp-admin/upload.php1,391 ▼04.21 ▼0.0597.87 ▼2.7641.76 ▼1.69

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: widgets custom class, widget css, classes, widgets, css...

wp-ngd-widget-css-classes/wp-ngd-widget-css-classes.php Passed 13 tests

The primary PHP file in "WP Widget CSS Classes" version 1.1 is used by WordPress to initiate all plugin functionality
92 characters long description:
WP Widget CSS Classes gives you the ability to add custom classes to your WordPress widgets.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin62 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3205762

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin