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.28MB] [CPU: ▼144.03ms] Passed 4 tests
An overview of server-side resources used by BU Versions
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.05 ▲0.33 | 38.27 ▲16.75 |
Dashboard /wp-admin | 3.37 ▲0.32 | 42.44 ▲0.44 |
Posts /wp-admin/edit.php | 3.42 ▲0.32 | 44.79 ▼1.60 |
Add New Post /wp-admin/post-new.php | 5.67 ▲0.23 | 89.83 ▼566.48 |
Media Library /wp-admin/upload.php | 3.25 ▲0.25 | 26.54 ▼8.49 |
Alternate Pages /wp-admin/edit.php?post_type=page_alt | 3.29 | 35.47 |
Alternate Reusable blocks /wp-admin/edit.php?post_type=wp_block_alt | 3.29 | 34.36 |
/wp-admin/admin.php?page=bu_create_version | 3.13 | 23.37 |
Alternate Posts /wp-admin/edit.php?post_type=post_alt | 3.29 | 32.89 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 19 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
BU Versions: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,697 ▲101 | 16.30 ▲0.80 | 7.77 ▼0.22 | 44.13 ▼2.36 |
Dashboard /wp-admin | 2,985 ▲48 | 6.11 ▲0.08 | 139.31 ▼13.04 | 109.74 ▼0.61 |
Posts /wp-admin/edit.php | 2,782 ▲43 | 2.71 ▲0.00 | 65.68 ▼1.82 | 96.24 ▲1.63 |
Add New Post /wp-admin/post-new.php | 1,628 ▼55 | 22.09 ▲3.35 | 259.31 ▼100.11 | 103.94 ▼6.56 |
Media Library /wp-admin/upload.php | 1,828 ▲77 | 5.07 ▲0.05 | 154.54 ▲0.45 | 113.09 ▼5.60 |
Alternate Pages /wp-admin/edit.php?post_type=page_alt | 1,424 | 2.65 | 62.80 | 76.71 |
Alternate Reusable blocks /wp-admin/edit.php?post_type=wp_block_alt | 1,414 | 2.63 | 61.90 | 75.82 |
/wp-admin/admin.php?page=bu_create_version | 1,001 | 2.34 | 53.36 | 61.24 |
Alternate Posts /wp-admin/edit.php?post_type=post_alt | 1,424 | 2.62 | 64.76 | 74.48 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- > GET request to /wp-admin/admin.php?page=bu_create_version
- > Notice in wp-content/plugins/bu-versions/bu-versions.php+816
Undefined index: _wpnonce
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 take a closer look at the following
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
require_once(): Failed opening required '/tmp/wordpress-tests-lib/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/bu-versions/tests/bootstrap.php on line 15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bu-versions/bu-versions.php:104
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/bu-versions/tests/test-bu-versions-meta.php:6
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/bu-versions/tests/test-bu-versions.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/bu-versions/interface/page-template.php:1
- > PHP Warning
require_once(/tmp/wordpress-tests-lib/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/bu-versions/tests/bootstrap.php on line 15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: bu, content editing, merge, version, workflow...
bu-versions/bu-versions.php Passed 13 tests
The entry point to "BU Versions" version 0.7.8 is a PHP file that has certain tags in its header comment area
43 characters long description:
Make and review edits to published content.
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 detected1,226 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 303 | 174 | 1,036 |
Bourne Shell | 1 | 21 | 6 | 85 |
CSS | 1 | 12 | 8 | 39 |
JSON | 1 | 0 | 0 | 23 |
JavaScript | 1 | 3 | 3 | 16 |
XML | 1 | 0 | 0 | 14 |
YAML | 1 | 5 | 0 | 13 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 18.30 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 59.00 |
Average method complexity | 3.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 85 | |
▷ Static methods | 4 | 4.71% |
▷ Public methods | 83 | 97.65% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 2.35% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/page_copy.png | 0.65KB | 0.91KB | 0.00% |
images/page_edit.png | 3.36KB | 0.91KB | ▼ 73.03% |
images/pages_alt.png | 2.05KB | 1.06KB | ▼ 48.43% |
images/posts_alt.png | 2.34KB | 1.26KB | ▼ 45.88% |