90% undo-box

Code Review | Undo Box

WordPress plugin Undo Box scored90%from 54 tests.

About plugin

  • Plugin page: undo-box
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.5
  • WordPress version: 6.3.1
  • First release: Jan 13, 2013
  • Latest release: Jan 13, 2013
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: Mike_Cowobo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,080 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
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by Undo Box
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.43 ▲0.46
Dashboard /wp-admin3.32 ▲0.0243.07 ▼4.01
Posts /wp-admin/edit.php3.37 ▲0.0246.44 ▼1.17
Add New Post /wp-admin/post-new.php5.92 ▲0.0480.80 ▼16.94
Media Library /wp-admin/upload.php3.24 ▲0.0234.26 ▼2.90

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Undo Box
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.61 ▼0.941.88 ▲0.1344.66 ▲3.14
Dashboard /wp-admin2,203 ▲154.80 ▼0.11108.55 ▲6.3143.82 ▲0.22
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.1239.45 ▲1.2636.22 ▲4.78
Add New Post /wp-admin/post-new.php6,230 ▲4,71121.71 ▼1.46867.50 ▲172.7869.12 ▲15.79
Media Library /wp-admin/upload.php1,388 ▼04.22 ▲0.0198.01 ▲0.3042.49 ▼3.15

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: revisions, undo, post, posts, admin

undo-box/undo-box.php Passed 13 tests

This is the main PHP file of "Undo Box" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
42 characters long description:
Simple one-click restore post when writing

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
There were no executable files found in this plugin75 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1223959
JavaScript11016

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.80
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods120.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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