90% widget-styler

Code Review | Widget Styler

WordPress plugin Widget Styler scored90%from 54 tests.

About plugin

  • Plugin page: widget-styler
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.6.1
  • WordPress version: 6.3.1
  • First release: Oct 13, 2016
  • Latest release: Oct 13, 2016
  • Number of updates: 6
  • Update frequency: every 0.5 days
  • Top authors: vladff (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /1,226 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 gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼4.91ms] Passed 4 tests

An overview of server-side resources used by Widget Styler
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0537.31 ▼3.72
Dashboard /wp-admin3.35 ▲0.0445.01 ▼4.54
Posts /wp-admin/edit.php3.40 ▲0.0447.46 ▼4.59
Add New Post /wp-admin/post-new.php5.93 ▲0.0494.08 ▼6.80
Media Library /wp-admin/upload.php3.27 ▲0.0434.17 ▼1.72

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Widget Styler
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,881 ▲13513.95 ▼0.614.79 ▲3.1537.16 ▼4.35
Dashboard /wp-admin2,206 ▲184.84 ▼1.05106.67 ▲0.7742.53 ▼1.06
Posts /wp-admin/edit.php2,089 ▼02.03 ▲0.0339.90 ▲0.5634.26 ▼2.93
Add New Post /wp-admin/post-new.php1,533 ▼1023.10 ▲4.60634.99 ▼8.1956.93 ▼0.52
Media Library /wp-admin/upload.php1,388 ▼04.24 ▲0.0497.14 ▼5.8244.81 ▲0.88

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Looking good! No server-side errors or output 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
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 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
Attributes that require attention:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === widget-styler === )
The official readme.txt is a good inspiration

widget-styler/widget-styler.php Passed 13 tests

The main PHP file in "Widget Styler" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
25 characters long description:
Easily style your widgets

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected159 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP2263688
JavaScript28043
CSS10028

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity18.00
▷ Minimum class complexity18.00
▷ Maximum class complexity18.00
Average method complexity3.43
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.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