Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.15MB] [CPU: ▼12.19ms] Passed 4 tests
This is a short check of server-side resources used by WP Custom Post Comparison
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 36.72 ▼6.44 |
Dashboard /wp-admin | 3.35 ▲0.04 | 48.07 ▼0.19 |
Posts /wp-admin/edit.php | 3.46 ▲0.11 | 52.61 ▲1.85 |
Add New Post /wp-admin/post-new.php | 5.18 ▼0.71 | 63.06 ▼43.99 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 39.79 ▲2.86 |
Custom Post Type /wp-admin/admin.php?page=custom-post | 3.24 | 32.31 |
CP Comparison /wp-admin/admin.php?page=custom-post-comparison | 3.24 | 33.18 |
Custom Fields /wp-admin/admin.php?page=cp-custom-field | 3.24 | 34.05 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Custom Post Comparison
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,850 ▲104 | 14.35 ▲0.07 | 1.85 ▲0.13 | 43.04 ▲0.03 |
Dashboard /wp-admin | 2,257 ▲80 | 5.62 ▼0.04 | 87.64 ▼0.83 | 39.90 ▼5.58 |
Posts /wp-admin/edit.php | 2,165 ▲65 | 2.05 ▲0.10 | 39.79 ▼0.29 | 39.75 ▼0.32 |
Add New Post /wp-admin/post-new.php | 1,555 ▲17 | 23.03 ▲4.81 | 668.67 ▲54.09 | 56.19 ▼15.57 |
Media Library /wp-admin/upload.php | 1,462 ▲59 | 4.27 ▲0.04 | 101.58 ▼4.14 | 42.35 ▼2.68 |
Custom Post Type /wp-admin/admin.php?page=custom-post | 1,613 | 1.74 | 28.37 | 30.61 |
CP Comparison /wp-admin/admin.php?page=custom-post-comparison | 883 | 1.81 | 24.97 | 54.72 |
Custom Fields /wp-admin/admin.php?page=cp-custom-field | 885 | 1.70 | 27.74 | 25.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
Smoke tests Passed 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 Passed 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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: directory, comparison, product compare, post compare, compare...
wp-custom-post-comparison/wp-custom-post-comparison.php 92% from 13 tests
The entry point to "WP Custom Post Comparison" version 0.0.1 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Text Domain: The text domain should only use lowercase characters and dashes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected1,281 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 70 | 162 | 1,102 |
JavaScript | 1 | 31 | 34 | 145 |
CSS | 1 | 5 | 0 | 34 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 107.00 |
▷ Minimum class complexity | 107.00 |
▷ Maximum class complexity | 107.00 |
Average method complexity | 6.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.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 | 19 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 19 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/pb-trp-cross-promotion.png | 7.44KB | 3.61KB | ▼ 51.53% |