90% widget-revisions

Code Review | Widget Revisions

WordPress plugin Widget Revisions scored 90% from 54 tests.

About plugin

  • Plugin page: widget-revisions
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.2
  • WordPress version: 6.3.1
  • First release: Jul 28, 2018
  • Latest release: Jul 19, 2019
  • Number of updates: 7
  • Update frequency: every 50.9 days
  • Top authors: nettantra (85.71%)pitabas106 (28.57%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 1,319 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼4.89ms] Passed 4 tests

Analyzing server-side resources used by Widget Revisions
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0739.60 ▼4.68
Dashboard /wp-admin3.37 ▲0.0646.88 ▼2.97
Posts /wp-admin/edit.php3.42 ▲0.0647.48 ▼3.57
Add New Post /wp-admin/post-new.php5.95 ▲0.0684.25 ▼8.33
Media Library /wp-admin/upload.php3.29 ▲0.0639.93 ▲4.16

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 7 new files
Database: 1 new table, 6 new options
New tables
wp_widget_revisions
New WordPress options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Widget Revisions
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.82 ▲0.441.79 ▼0.1143.37 ▲3.10
Dashboard /wp-admin2,206 ▲184.82 ▼1.09104.79 ▲0.6939.54 ▼1.51
Posts /wp-admin/edit.php2,089 ▲32.01 ▼0.0337.31 ▼2.7834.56 ▼1.03
Add New Post /wp-admin/post-new.php1,539 ▲2523.48 ▲5.97670.73 ▲0.4961.87 ▲1.30
Media Library /wp-admin/upload.php1,385 ▲34.24 ▲0.05108.30 ▲4.4444.93 ▼1.72

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: widget history, revisions, widget revision, widget revisions, widget log...

widget-revisions/widget-revisions.php 92% from 13 tests

The primary PHP file in "Widget Revisions" version 1.0.3 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 281 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected466 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP38626299
JavaScript18487
SVG10049
CSS16431

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity34.00
▷ Minimum class complexity34.00
▷ Maximum class complexity34.00
Average method complexity4.30
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.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
No PNG files were detected