Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼2.97ms] Passed 4 tests
This is a short check of server-side resources used by Compare Plugins with Latest Version
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 41.25 ▲1.59 |
Dashboard /wp-admin | 3.35 ▲0.04 | 43.46 ▼4.90 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 49.02 ▲2.08 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 79.60 ▼9.16 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 36.46 ▲0.60 |
Server storage [IO: ▲3.26MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 36 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Compare Plugins with Latest Version
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.24 ▼1.13 | 1.73 ▲0.04 | 44.24 ▲4.63 |
Dashboard /wp-admin | 2,203 ▲48 | 4.86 ▼0.82 | 108.83 ▲9.85 | 41.63 ▲0.79 |
Posts /wp-admin/edit.php | 2,092 ▼0 | 2.02 ▼0.03 | 36.54 ▼2.35 | 35.58 ▲1.58 |
Add New Post /wp-admin/post-new.php | 1,542 ▲9 | 22.69 ▼0.41 | 636.03 ▼54.44 | 54.01 ▼9.04 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.22 ▼0.08 | 96.02 ▼8.03 | 42.38 ▼9.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/compare-plugins-with-latest-version/cplv-load-admin.php+190
Non-static method PluginFilesComparison_Admin::pfcv_unlink_extract_folder() should not be called statically
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however 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
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/compare-plugins-with-latest-version/compare-plugins-with-latest-version.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 96% 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
3 plugin tags: compare, compare plugin files, compare plugin
compare-plugins-with-latest-version/compare-plugins-with-latest-version.php 92% from 13 tests
This is the main PHP file of "Compare Plugins with Latest Version" version 1.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Description: Please keep the plugin description shorter than 140 characters (currently 268 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin9,735 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 3 | 0 | 12 | 9,061 |
PHP | 5 | 193 | 179 | 539 |
CSS | 4 | 3 | 14 | 83 |
JavaScript | 3 | 15 | 6 | 52 |
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.36 |
Average class complexity | 31.00 |
▷ Minimum class complexity | 22.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 3.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 20 | |
▷ Static methods | 16 | 80.00% |
▷ Public methods | 17 | 85.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 15.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 6 | 66.67% |
▷ Class constants | 3 | 33.33% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.21MB with 0.11MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/bv_logo.png | 2.30KB | 2.41KB | 0.00% |
images/logo.png | 10.82KB | 3.28KB | ▼ 69.67% |
Compare-files.png | 111.87KB | 31.60KB | ▼ 71.75% |
Compare-files-plugin-text.png | 94.41KB | 27.44KB | ▼ 70.93% |