89% wp-modification-history

Code Review | WP Modification History

WordPress plugin WP Modification History scored 89% from 54 tests.

About plugin

  • Plugin page: wp-modification-h...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-4.2
  • WordPress version: 5.9.2
  • First release: May 29, 2015
  • Latest release: Aug 26, 2015
  • Number of updates: 6
  • Update frequency: every 15.0 days
  • Top authors: jphase (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 965 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.85MB] [CPU: ▼303.88ms] Passed 4 tests

An overview of server-side resources used by WP Modification History
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.0953.14 ▲1.15
Dashboard /wp-admin3.50 ▲0.0932.82 ▼0.79
Posts /wp-admin/edit.php3.73 ▲0.0838.51 ▲1.67
Add New Post /wp-admin/post-new.php3.31 ▼3.6629.27 ▼1,210.66
Media Library /wp-admin/upload.php3.38 ▲0.0722.78 ▼5.23
Modification History /wp-admin/options-general.php?page=mod-history3.3522.02

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

WP Modification History: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,800 ▲4616.23 ▲0.615.94 ▲0.093.00 ▲0.33
Dashboard /wp-admin2,894 ▲336.16 ▲0.02117.97 ▼14.49154.10 ▼6.38
Posts /wp-admin/edit.php2,693 ▼13.23 ▼0.0163.61 ▼1.16135.57 ▼6.48
Add New Post /wp-admin/post-new.php1,664 ▲316.06 ▼0.13415.32 ▲1.14156.52 ▲4.72
Media Library /wp-admin/upload.php1,703 ▲55.50 ▼0.02141.43 ▼4.94184.48 ▼1.73
Modification History /wp-admin/options-general.php?page=mod-history1,1202.3853.44129.63

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
You still need to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/wp-modification-history/uninstall.php+9
    Undefined variable: ModHistory

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: postmeta, data, modification, meta, history

wp-modification-history/index.php 85% from 13 tests

Analyzing the main PHP file in "WP Modification History" version 1.0.0
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-modification-history.php" instead of "index.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected307 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP46692307

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity30.00
▷ Minimum class complexity10.00
▷ Maximum class complexity50.00
Average method complexity5.46
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods1184.62%
▷ Protected methods00.00%
▷ Private methods215.38%
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

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected