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
Install script ran successfully
Server metrics [RAM: ▲0.16MB] [CPU: ▼2.67ms] Passed 4 tests
A check of server-side resources used by WordPress Plugins Compare Diff
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 39.89 ▼0.27 |
Dashboard /wp-admin | 3.53 ▲0.18 | 46.24 ▼9.81 |
Posts /wp-admin/edit.php | 3.58 ▲0.22 | 48.45 ▼1.62 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.16 | 89.25 ▲1.01 |
Media Library /wp-admin/upload.php | 3.38 ▲0.16 | 35.71 ▲1.87 |
Website Compare /wp-admin/options-general.php?page=plugins_compare_options | 3.35 | 33.82 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 26 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
plgncmpr_general_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
plgncmpr_settings_manual_options |
Browser metrics Passed 4 tests
Checking browser requirements for WordPress Plugins Compare Diff
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲60 | 13.22 ▼1.45 | 1.67 ▲0.03 | 43.51 ▲0.23 |
Dashboard /wp-admin | 2,212 ▲60 | 5.88 ▲0.28 | 105.82 ▲7.34 | 41.81 ▲3.02 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.03 ▼0.02 | 39.77 ▲1.08 | 34.55 ▼3.41 |
Add New Post /wp-admin/post-new.php | 1,538 ▲15 | 22.97 ▼0.08 | 640.73 ▼27.71 | 55.99 ▼1.00 |
Media Library /wp-admin/upload.php | 1,394 ▲6 | 4.26 ▲0.15 | 96.37 ▼0.89 | 42.07 ▲0.75 |
Website Compare /wp-admin/options-general.php?page=plugins_compare_options | 895 | 2.00 | 37.63 | 28.18 |
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 does not fully uninstall, leaving 8 options in the database
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- plgncmpr_general_options
- db_upgraded
- can_compress_scripts
- plgncmpr_settings_manual_options
- theysaidso_admin_options
Smoke tests 75% from 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 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/website-compare/public/partials/website-compare-public-display.php
- > /wp-content/plugins/website-compare/admin/partials/website-compare-admin-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration Passed 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
2 plugin tags: comments, spam
website-compare/website-compare.php Passed 13 tests
The main file in "WordPress Plugins Compare Diff" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
90 characters long description:
Allows you to easily compare plugins between two websites that have this plugin installed.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected932 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 338 | 791 | 871 |
CSS | 2 | 18 | 21 | 52 |
JavaScript | 2 | 8 | 54 | 9 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 49.00 |
Average method complexity | 2.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 80 | |
▷ Static methods | 2 | 2.50% |
▷ Public methods | 75 | 93.75% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 6.25% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin