84% wp-widget-styler

Code Review | WP Widget Styler

WordPress plugin WP Widget Styler scored84%from 54 tests.

About plugin

  • Plugin page: wp-widget-styler
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.5
  • WordPress version: 6.3.1
  • First release: Sep 2, 2020
  • Latest release: Sep 2, 2020
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: webempire (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /363 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.32MB] [CPU: ▼1.11ms] Passed 4 tests

Server-side resources used by WP Widget Styler
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.81 ▲0.3443.35 ▼6.05
Dashboard /wp-admin3.61 ▲0.3155.48 ▼6.08
Posts /wp-admin/edit.php3.73 ▲0.3758.80 ▲5.73
Add New Post /wp-admin/post-new.php6.20 ▲0.3199.57 ▲2.89
Media Library /wp-admin/upload.php3.54 ▲0.3142.83 ▲4.82
Widget Styler /wp-admin/themes.php?page=wp-widget-styler3.5336.28

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 25 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-comments
wp-widget-styler-version
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for WP Widget Styler
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.31 ▼0.282.08 ▼0.2344.04 ▼2.40
Dashboard /wp-admin2,199 ▲195.63 ▼0.0386.34 ▼5.4343.88 ▲2.02
Posts /wp-admin/edit.php2,104 ▲11.94 ▼0.0443.41 ▲7.6941.34 ▲7.10
Add New Post /wp-admin/post-new.php1,529 ▲323.03 ▲0.14632.65 ▼77.4655.81 ▼5.33
Media Library /wp-admin/upload.php1,407 ▲74.18 ▲0.0099.96 ▼12.4543.36 ▼6.36
Widget Styler /wp-admin/themes.php?page=wp-widget-styler1,0102.3040.2060.23

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 7 options
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • wp-widget-styler-version
    • db_upgraded

Smoke tests 75% from 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 50% from 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
Please fix the following
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wp-widget-styler/public/widget-styler-admin.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget_Styler_Helper' not found in wp-content/plugins/wp-widget-styler/public/widget-styler-general.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: wordpress widgets, widget style, wp widget styler, widget options, custom widget

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

"WP Widget Styler" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
74 characters long description:
Power-up your WordPress widgets using these awesome styler configurations.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected6,836 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript31,2143334,602
PHP136059481,705
CSS38725529

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.48
Average class complexity34.14
▷ Minimum class complexity2.00
▷ Maximum class complexity88.00
Average method complexity4.31
▷ Minimum method complexity1.00
▷ Maximum method complexity38.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes228.57%
Methods70
▷ Static methods2130.00%
▷ Public methods6897.14%
▷ Protected methods00.00%
▷ Private methods22.86%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants11
▷ Global constants11100.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