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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.09 | 53.14 ▲1.15 |
Dashboard /wp-admin | 3.50 ▲0.09 | 32.82 ▼0.79 |
Posts /wp-admin/edit.php | 3.73 ▲0.08 | 38.51 ▲1.67 |
Add New Post /wp-admin/post-new.php | 3.31 ▼3.66 | 29.27 ▼1,210.66 |
Media Library /wp-admin/upload.php | 3.38 ▲0.07 | 22.78 ▼5.23 |
Modification History /wp-admin/options-general.php?page=mod-history | 3.35 | 22.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,800 ▲46 | 16.23 ▲0.61 | 5.94 ▲0.09 | 3.00 ▲0.33 |
Dashboard /wp-admin | 2,894 ▲33 | 6.16 ▲0.02 | 117.97 ▼14.49 | 154.10 ▼6.38 |
Posts /wp-admin/edit.php | 2,693 ▼1 | 3.23 ▼0.01 | 63.61 ▼1.16 | 135.57 ▼6.48 |
Add New Post /wp-admin/post-new.php | 1,664 ▲3 | 16.06 ▼0.13 | 415.32 ▲1.14 | 156.52 ▲4.72 |
Media Library /wp-admin/upload.php | 1,703 ▲5 | 5.50 ▼0.02 | 141.43 ▼4.94 | 184.48 ▼1.73 |
Modification History /wp-admin/options-general.php?page=mod-history | 1,120 | 2.38 | 53.44 | 129.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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 66 | 92 | 307 |
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 code | 0.42 |
Average class complexity | 30.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 50.00 |
Average method complexity | 5.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 84.62% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 15.38% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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