Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲5.01MB] [CPU: ▲24.33ms] 75% from 4 tests
Server-side resources used by F4 Post Tree
It is recommended to improve the following
- Extra RAM: The extra memory usage must be under 5MB (currently 5.01MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.88 ▲5.42 | 66.70 ▲29.31 |
Dashboard /wp-admin | 8.90 ▲5.56 | 80.74 ▲25.40 |
Posts /wp-admin/edit.php | 8.90 ▲5.55 | 77.79 ▲32.70 |
Add New Post /wp-admin/post-new.php | 9.39 ▲3.51 | 105.25 ▲9.91 |
Media Library /wp-admin/upload.php | 8.90 ▲5.67 | 67.44 ▲35.54 |
Post Tree /wp-admin/options-general.php?page=f4-tree-settings | 8.90 | 64.01 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 8.90 | 56.54 |
Server storage [IO: ▲3.25MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 196 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_theysaidso_widget |
fs_accounts |
f4-tree-changed-timestamp |
widget_recent-comments |
theysaidso_admin_options |
fs_debug_mode |
widget_recent-posts |
can_compress_scripts |
fs_active_plugins |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for F4 Post Tree
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,848 ▲102 | 13.55 ▼1.08 | 1.58 ▼0.09 | 32.00 ▼5.80 |
Dashboard /wp-admin | 2,254 ▲65 | 5.88 ▲0.95 | 106.81 ▼5.04 | 41.89 ▲1.72 |
Posts /wp-admin/edit.php | 2,215 ▲123 | 2.49 ▲0.43 | 51.43 ▲15.70 | 34.68 ▲2.72 |
Add New Post /wp-admin/post-new.php | 1,620 ▲87 | 23.61 ▲0.36 | 647.33 ▼36.58 | 34.36 ▼19.37 |
Media Library /wp-admin/upload.php | 1,439 ▲51 | 4.25 ▲0.05 | 93.23 ▼5.52 | 47.51 ▲1.18 |
Post Tree /wp-admin/options-general.php?page=f4-tree-settings | 1,003 | 1.71 | 26.02 | 68.27 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,077 | 1.69 | 25.76 | 23.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/f4-tree/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- The uninstall procedure has failed, leaving 10 options in the database
- fs_accounts
- db_upgraded
- f4-tree-changed-timestamp
- widget_recent-posts
- widget_recent-comments
- fs_debug_mode
- theysaidso_admin_options
- fs_active_plugins
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_types() in wp-content/plugins/f4-tree/Tree/views/admin-settings-fields.php:3
- > PHP Fatal error
Uncaught Error: Class 'F4\\TREE\\Tree\\Helpers' not found in wp-content/plugins/f4-tree/Tree/views/tree.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/f4-tree/Core/views/admin-settings.php:23
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 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
8 plugin tags: drag-and-drop, posts, treeview, tree, sidebar...
f4-tree/f4-tree.php 92% from 13 tests
The principal PHP file in "F4 Post Tree" v. 1.1.15 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Domain Path: The domain path should use only dashes and lowercase characters ("/languages*/")
Code Analysis 97% from 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 detected34,805 lines of code in 148 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 125 | 8,125 | 17,512 | 33,656 |
JavaScript | 6 | 114 | 81 | 504 |
CSS | 15 | 29 | 64 | 423 |
Markdown | 1 | 68 | 0 | 214 |
SVG | 1 | 0 | 1 | 8 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
Please fix the following
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 87.23 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 52 | |
▷ Abstract classes | 2 | 3.85% |
▷ Concrete classes | 50 | 96.15% |
▷ Final classes | 0 | 0.00% |
Methods | 1,294 | |
▷ Static methods | 232 | 17.93% |
▷ Public methods | 905 | 69.94% |
▷ Protected methods | 17 | 1.31% |
▷ Private methods | 372 | 28.75% |
Functions | 103 | |
▷ Named functions | 99 | 96.12% |
▷ Anonymous functions | 4 | 3.88% |
Constants | 155 | |
▷ Global constants | 108 | 69.68% |
▷ Class constants | 47 | 30.32% |
▷ Public constants | 47 | 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.05MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/made-with-love-by-f4.png | 1.83KB | 1.95KB | 0.00% |
freemius/assets/img/plugin-icon.png | 32.53KB | 15.44KB | ▼ 52.52% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
Tree/assets/img/tree-icon-menu.png | 0.94KB | 0.10KB | ▼ 88.85% |