Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼147.44ms] Passed 4 tests
A check of server-side resources used by Diffen
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.14 | 39.89 ▲14.02 |
Dashboard /wp-admin | 3.08 ▲0.03 | 51.15 ▼3.11 |
Posts /wp-admin/edit.php | 3.13 ▲0.02 | 52.09 ▼5.38 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.01 | 98.78 ▼585.33 |
Media Library /wp-admin/upload.php | 3.02 ▲0.02 | 38.39 ▲4.06 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Diffen
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,705 ▲68 | 15.99 ▲0.38 | 13.84 ▲2.92 | 48.64 ▲2.02 |
Dashboard /wp-admin | 2,969 ▲32 | 6.13 ▲0.15 | 145.35 ▼24.80 | 123.72 ▼3.89 |
Posts /wp-admin/edit.php | 2,741 ▲2 | 2.73 ▲0.01 | 73.73 ▲8.97 | 94.67 ▼4.94 |
Add New Post /wp-admin/post-new.php | 1,617 ▼66 | 20.93 ▲2.73 | 286.79 ▼103.26 | 115.98 ▼4.77 |
Media Library /wp-admin/upload.php | 1,806 ▼1 | 5.04 ▼0.01 | 153.60 ▲7.48 | 131.40 ▼4.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully
Smoke tests 75% from 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)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 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
Please fix the following items
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'DiffenComparisonToolPlugin' not found in wp-content/plugins/diffen/action.api.php:16
- > PHP Notice
Undefined index: diffen_comp1 in wp-content/plugins/diffen/action.api.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_register_script() in wp-content/plugins/diffen/view.form.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/diffen/plugin.diffen.php:15
- > PHP Notice
Undefined index: diffen_comp2 in wp-content/plugins/diffen/action.api.php on line 8
- > PHP Fatal error
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 90% from 29 tests
readme.txt 94% from 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
Attributes that require attention:
- Tags: There are too many tags (15 tag instead of maximum 10)
diffen/plugin.diffen.php 85% from 13 tests
The entry point to "Diffen" version 2.1 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 149 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("diffen.php" instead of "plugin.diffen.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected317 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 29 | 58 | 190 |
JavaScript | 1 | 4 | 14 | 127 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 11 | |
▷ Static methods | 11 | 100.00% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.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
There are no PNG files in this plugin