Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.23MB] [CPU: ▼4.47ms] Passed 4 tests
A check of server-side resources used by CMS Tree Page View
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.23 | 37.13 ▼2.38 |
Dashboard /wp-admin | 3.56 ▲0.21 | 50.37 ▼9.49 |
Posts /wp-admin/edit.php | 3.65 ▲0.30 | 48.05 ▲5.19 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.23 | 80.01 ▼5.26 |
Media Library /wp-admin/upload.php | 3.46 ▲0.23 | 37.55 ▼0.75 |
CMS Tree Page View /wp-admin/options-general.php?page=cms-tpv-options | 3.43 | 32.15 |
Tree View /wp-admin/edit.php?post_type=page&page=cms-tpv-page-page | 3.46 | 37.86 |
Server storage [IO: ▲0.82MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 83 new files
Database: no new tables, 10 new options
New WordPress options |
---|
cms_tpv_version |
theysaidso_admin_options |
cms_tpv_show_annoying_little_box |
cms_tpv_options |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
cms_tpv_show_promo |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for CMS Tree Page View
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,165 ▲419 | 14.04 ▼0.58 | 1.66 ▲0.17 | 30.75 ▼8.65 |
Dashboard /wp-admin | 2,574 ▲397 | 5.91 ▲0.26 | 105.97 ▲20.85 | 45.05 ▲6.13 |
Posts /wp-admin/edit.php | 2,108 ▲8 | 1.96 ▼0.05 | 32.95 ▼5.71 | 32.63 ▼2.16 |
Add New Post /wp-admin/post-new.php | 1,532 ▼5 | 23.17 ▲4.93 | 665.17 ▲11.53 | 59.49 ▼26.60 |
Media Library /wp-admin/upload.php | 1,411 ▲14 | 4.23 ▲0.02 | 104.75 ▼16.29 | 45.96 ▼1.58 |
CMS Tree Page View /wp-admin/options-general.php?page=cms-tpv-options | 1,032 | 2.33 | 35.05 | 28.52 |
Tree View /wp-admin/edit.php?post_type=page&page=cms-tpv-page-page | 1,185 | 2.67 | 49.75 | 29.59 |
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
The following items require your attention
- Zombie WordPress options were found after uninstall: 10 options
- cms_tpv_show_annoying_little_box
- cms_tpv_options
- cms_tpv_version
- widget_recent-comments
- can_compress_scripts
- cms_tpv_show_promo
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% 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)
Good news, no errors were detected
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 items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > 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 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 87% 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: Please add images for these screenshots: #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.)
- Tags: Please delete some tags, you are using 13 tag instead of maximum 10
cms-tree-page-view/index.php 85% from 13 tests
Analyzing the main PHP file in "CMS Tree Page View" version 1.6.8
You should first fix the following items:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 305 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("cms-tree-page-view.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected10,440 lines of code in 34 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 360 | 512 | 4,951 |
PO File | 24 | 1,551 | 1,982 | 3,679 |
PHP | 2 | 478 | 368 | 1,266 |
CSS | 3 | 106 | 60 | 540 |
Markdown | 1 | 3 | 0 | 4 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
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 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
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/lock.png | 0.73KB | 0.91KB | 0.00% |
screenshot-2.png | 56.84KB | 26.44KB | ▼ 53.49% |
scripts/themes/wordpress/iconsxx.png | 6.52KB | 2.11KB | ▼ 67.66% |
styles/images/switch-view-icons.png | 0.70KB | 0.69KB | ▼ 2.09% |
images/page_white_text.png | 0.33KB | 0.46KB | 0.00% |