Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/treeview-on-contents/treeview-on-contents.php+33
Methods with the same name as their class will not be constructors in a future version of PHP; TreeViewOnContents has a deprecated constructor
Server metrics [RAM: ▲0.01MB] [CPU: ▼1.67ms] Passed 4 tests
Server-side resources used by Treeview On Contents
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 36.22 ▼7.01 |
Dashboard /wp-admin | 3.32 ▲0.01 | 47.44 ▲1.18 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 47.92 ▲2.01 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 94.82 ▼0.12 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 33.87 ▼0.74 |
TreeView On Contents /wp-admin/options-general.php?page=tvonc_settings | 3.18 | 39.57 |
Server storage [IO: ▲0.21MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 43 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
use_easy_block_selector |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Treeview On Contents
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,896 ▲161 | 13.68 ▼0.60 | 5.17 ▲3.26 | 42.75 ▼5.72 |
Dashboard /wp-admin | 2,212 ▲21 | 4.84 ▼0.02 | 107.28 ▲4.56 | 40.32 ▲1.53 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 1.96 ▼0.08 | 40.91 ▲0.92 | 36.20 ▼0.14 |
Add New Post /wp-admin/post-new.php | 1,540 ▲26 | 22.88 ▲5.42 | 637.97 ▼1.41 | 58.48 ▼7.60 |
Media Library /wp-admin/upload.php | 1,394 ▲6 | 4.13 ▼0.09 | 94.24 ▼11.42 | 41.21 ▼4.26 |
TreeView On Contents /wp-admin/options-general.php?page=tvonc_settings | 800 | 2.03 | 26.71 | 26.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.08MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- use_easy_block_selector
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
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
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=tvonc_settings
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=tvonc_settings
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
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
Please fix the following items
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/treeview-on-contents/tinymce3/dialog.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/treeview-on-contents/treeview-on-contents.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: tinymce, contents, tree, view, editor
treeview-on-contents/treeview-on-contents.php Passed 13 tests
This is the main PHP file of "Treeview On Contents" version 0.1.8, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
21 characters long description:
TreeView On Contents.
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,835 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 7 | 234 | 219 | 1,414 |
PHP | 2 | 57 | 15 | 221 |
CSS | 2 | 30 | 6 | 134 |
PO File | 1 | 24 | 27 | 66 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
7 PNG files occupy 0.11MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
tinymce3/tvonc_mce_icon.png | 2.94KB | 0.17KB | ▼ 94.39% |
tinymce3/cross.png | 0.64KB | 0.72KB | 0.00% |
tinymce3/change.png | 0.22KB | 0.17KB | ▼ 23.04% |
screenshot-1.png | 22.31KB | 12.53KB | ▼ 43.85% |
screenshot-3.png | 56.62KB | 24.15KB | ▼ 57.35% |