Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.59MB] [CPU: ▲1.90ms] 75% from 4 tests
A check of server-side resources used by CBX Changelog
Please fix the following
- CPU: The total CPU usage must kept under 500.00ms (currently 1,523.60ms on /wp-admin/edit.php?post_type=cbxchangelog&page=cbxchangelog-support)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.08 ▲0.61 | 41.87 ▲2.91 |
Dashboard /wp-admin | 3.93 ▲0.63 | 49.66 ▲0.25 |
Posts /wp-admin/edit.php | 3.99 ▲0.63 | 52.47 ▲1.65 |
Add New Post /wp-admin/post-new.php | 6.46 ▲0.57 | 94.78 ▲2.79 |
Media Library /wp-admin/upload.php | 3.80 ▲0.56 | 45.85 ▲12.80 |
Add New /wp-admin/post-new.php?post_type=cbxchangelog | 4.10 | 52.15 |
Changelogs /wp-admin/edit.php?post_type=cbxchangelog | 3.90 | 41.27 |
Helps & Updates /wp-admin/edit.php?post_type=cbxchangelog&page=cbxchangelog-support | 5.02 | 1,523.60 |
Setting /wp-admin/edit.php?post_type=cbxchangelog&page=cbxchangelog-settings | 3.82 | 38.81 |
Server storage [IO: ▲2.45MB] [DB: ▲0.09MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 341 new files
Database: no new tables, 9 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
cbxchangelog_tools |
cbxchangelog_general |
db_upgraded |
widget_cbxchangelog |
Browser metrics Passed 4 tests
An overview of browser requirements for CBX Changelog
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,864 ▲102 | 14.15 ▼0.24 | 1.73 ▼0.09 | 31.44 ▼14.77 |
Dashboard /wp-admin | 2,232 ▲54 | 5.63 ▲0.03 | 90.12 ▼24.63 | 86.53 ▲43.58 |
Posts /wp-admin/edit.php | 2,137 ▲37 | 1.97 ▼0.06 | 38.44 ▲1.77 | 33.79 ▼0.39 |
Add New Post /wp-admin/post-new.php | 1,685 ▲149 | 23.74 ▲0.37 | 650.25 ▼39.64 | 37.18 ▼20.16 |
Media Library /wp-admin/upload.php | 1,428 ▲28 | 4.14 ▼0.07 | 102.87 ▲4.34 | 71.33 ▲30.20 |
Add New /wp-admin/post-new.php?post_type=cbxchangelog | 2,796 | 8.28 | 208.80 | 114.07 |
Changelogs /wp-admin/edit.php?post_type=cbxchangelog | 1,080 | 1.90 | 33.10 | 27.07 |
Helps & Updates /wp-admin/edit.php?post_type=cbxchangelog&page=cbxchangelog-support | 1,439 | 1.99 | 24.91 | 54.82 |
Setting /wp-admin/edit.php?post_type=cbxchangelog&page=cbxchangelog-settings | 1,547 | 3.80 | 70.91 | 77.72 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.09MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 9 options
- can_compress_scripts
- widget_cbxchangelog
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- cbxchangelog_tools
- widget_recent-comments
- widget_theysaidso_widget
- cbxchangelog_general
Smoke tests 50% 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)
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/cbxchangelog/vendor/michelf/php-markdown/Readme.php
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/cbxchangelog/vendor/michelf/php-markdown/test/integration/PhpMarkdownTest.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Michelf\\MarkdownInterface' not found in wp-content/plugins/cbxchangelog/vendor/michelf/php-markdown/Michelf/Markdown.php:16
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/cbxchangelog/vendor/michelf/php-markdown/test/unit/MarkdownExtraTest.php:3
- > PHP Fatal error
Uncaught Error: Class 'Michelf\\Markdown' not found in wp-content/plugins/cbxchangelog/vendor/michelf/php-markdown/Michelf/MarkdownExtra.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Screenshots: Add descriptions for screenshots #1, #2, #3, #4, #5, #6, #7, #8, #9 in cbxchangelog/assets to your readme.txt
- Requires php: Invalid plugin version format
cbxchangelog/cbxchangelog.php Passed 13 tests
The entry point to "CBX Changelog" version 1.1.3 is a PHP file that has certain tags in its header comment area
86 characters long description:
Easy change log manager for wordpress, use for any product post type or releases notes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin27,619 lines of code in 238 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 76 | 2,990 | 1,387 | 12,324 |
PHP | 41 | 1,516 | 3,025 | 6,115 |
Sass | 33 | 932 | 108 | 3,987 |
XHTML | 56 | 1,024 | 0 | 2,503 |
CSS | 15 | 161 | 63 | 1,948 |
Markdown | 3 | 158 | 0 | 371 |
SVG | 4 | 0 | 3 | 119 |
JSON | 3 | 0 | 0 | 96 |
HTML | 4 | 45 | 13 | 68 |
YAML | 2 | 4 | 0 | 65 |
XML | 1 | 1 | 0 | 23 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 37.35 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 142.00 |
Average method complexity | 3.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 60.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 19 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 19 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 271 | |
▷ Static methods | 41 | 15.13% |
▷ Public methods | 165 | 60.89% |
▷ Protected methods | 98 | 36.16% |
▷ Private methods | 8 | 2.95% |
Functions | 15 | |
▷ Named functions | 11 | 73.33% |
▷ Anonymous functions | 4 | 26.67% |
Constants | 8 | |
▷ Global constants | 7 | 87.50% |
▷ Class constants | 1 | 12.50% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
21 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/vendors/ui-lightness/images/ui-icons_e74c3c_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
assets/vendors/ui-lightness/images/ui-bg_fine-grain_0_1ABC9C_60x60.png | 0.20KB | 0.08KB | ▼ 57.77% |
assets/images/icon_move.png | 0.22KB | 0.22KB | ▼ 0.89% |
assets/vendors/ui-lightness/images/ui-bg_diagonal-maze_0_1b2129_10x10.png | 0.20KB | 0.08KB | ▼ 58.91% |
assets/vendors/ui-lightness/images/ui-bg_fine-grain_0_ecf0f1_60x60.png | 0.20KB | 0.08KB | ▼ 57.77% |