Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.23MB] [CPU: ▼278.30ms] Passed 4 tests
A check of server-side resources used by CMS Tree Page View
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.04 ▲0.32 | 36.35 ▲11.66 |
Dashboard /wp-admin | 3.28 ▲0.23 | 48.03 ▼2.04 |
Posts /wp-admin/edit.php | 3.38 ▲0.28 | 45.07 ▲4.00 |
Add New Post /wp-admin/post-new.php | 5.64 ▲0.21 | 96.98 ▼1,111.33 |
Media Library /wp-admin/upload.php | 3.22 ▲0.21 | 31.24 ▼3.81 |
Tree View /wp-admin/edit.php?post_type=page&page=cms-tpv-page-page | 3.21 | 32.14 |
CMS Tree Page View /wp-admin/options-general.php?page=cms-tpv-options | 3.19 | 31.11 |
Server storage [IO: ▲0.81MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 83 new files
Database: no new tables, 4 new options
New WordPress options |
---|
cms_tpv_version |
cms_tpv_show_promo |
cms_tpv_show_annoying_little_box |
cms_tpv_options |
Browser metrics Passed 4 tests
Checking browser requirements for CMS Tree Page View
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,216 ▲610 | 16.84 ▲0.85 | 7.51 ▼0.40 | 46.62 ▼3.87 |
Dashboard /wp-admin | 3,488 ▲635 | 6.84 ▲1.01 | 159.58 ▲20.30 | 124.23 ▲24.96 |
Posts /wp-admin/edit.php | 2,716 ▲10 | 2.68 ▲0.00 | 67.23 ▲5.71 | 85.22 ▼1.49 |
Add New Post /wp-admin/post-new.php | 1,594 ▼259 | 21.51 ▲2.39 | 257.37 ▼128.17 | 102.34 ▼5.63 |
Media Library /wp-admin/upload.php | 1,723 ▼52 | 4.99 ▲0.01 | 141.43 ▼5.25 | 115.75 ▲8.22 |
Tree View /wp-admin/edit.php?post_type=page&page=cms-tpv-page-page | 1,539 | 3.24 | 74.98 | 82.31 |
CMS Tree Page View /wp-admin/options-general.php?page=cms-tpv-options | 1,308 | 3.05 | 69.58 | 68.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 4 options in the database
- cms_tpv_options
- cms_tpv_version
- cms_tpv_show_annoying_little_box
- cms_tpv_show_promo
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/cms-tree-page-view/index.php:49
- > 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 issues were found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
- Screenshots: These screenshots require images: #1 (The page tree in action), #2 (Edit, view and even add multiple pages at once!), #3 (Drag-and-drop to rearrange/change the order of the pages.)
cms-tree-page-view/index.php 85% from 13 tests
"CMS Tree Page View" version 1.6.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("cms-tree-page-view.php" instead of "index.php")
- Description: The description should be shorter than 140 characters (currently 305 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin10,396 lines of code in 34 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 359 | 512 | 4,947 |
PO File | 24 | 1,551 | 1,982 | 3,679 |
PHP | 2 | 473 | 368 | 1,226 |
CSS | 3 | 106 | 60 | 540 |
Markdown | 1 | 3 | 0 | 4 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 41 | |
▷ Named functions | 40 | 97.56% |
▷ Anonymous functions | 1 | 2.44% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
11 PNG files occupy 0.17MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
styles/images/switch-view-icons.png | 0.70KB | 0.69KB | ▼ 2.09% |
images/page_white_text.png | 0.33KB | 0.46KB | 0.00% |
scripts/themes/wordpress/d.png | 7.30KB | 2.59KB | ▼ 64.45% |
styles/images/lock.png | 0.73KB | 0.91KB | 0.00% |
screenshot-2.png | 56.84KB | 26.44KB | ▼ 53.49% |