Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲4.51MB] [CPU: ▼274.98ms] Passed 4 tests
Analyzing server-side resources used by Hooked Editable Content
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.36 ▲4.85 | 76.43 ▲26.61 |
Dashboard /wp-admin | 8.38 ▲4.98 | 59.52 ▲26.56 |
Posts /wp-admin/edit.php | 8.38 ▲4.74 | 60.42 ▲17.05 |
Add New Post /wp-admin/post-new.php | 10.48 ▲3.48 | 115.58 ▼1,166.85 |
Media Library /wp-admin/upload.php | 8.38 ▲5.09 | 46.66 ▲23.31 |
Freemius Debug [v.2.4.1] /wp-admin/admin.php?page=freemius | 8.38 | 44.15 |
Server storage [IO: ▲3.10MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 190 new files
Database: no new tables, 5 new options
New WordPress options |
---|
hooked_editable_content_options |
fs_accounts |
fs_gdpr |
fs_debug_mode |
fs_active_plugins |
Browser metrics Passed 4 tests
Hooked Editable Content: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,852 ▲130 | 15.99 ▲0.43 | 6.66 ▲0.95 | 2.62 ▲0.13 |
Dashboard /wp-admin | 2,942 ▲88 | 6.08 ▼0.14 | 122.38 ▼20.93 | 183.02 ▲15.90 |
Posts /wp-admin/edit.php | 2,741 ▲50 | 3.26 ▲0.02 | 65.82 ▲3.71 | 158.40 ▲11.37 |
Add New Post /wp-admin/post-new.php | 1,664 ▲4 | 18.46 ▼2.83 | 422.08 ▼22.57 | 160.39 ▲2.45 |
Media Library /wp-admin/upload.php | 1,749 ▲49 | 5.63 ▲0.16 | 140.57 ▼5.37 | 205.56 ▲25.75 |
Freemius Debug [v.2.4.1] /wp-admin/admin.php?page=freemius | 1,452 | 2.55 | 53.80 | 114.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/hooked-editable-content/freemius/includes/class-freemius.php+8540
Undefined property: stdClass::$plugins
- This plugin did not uninstall successfully, leaving 4 options in the database
- fs_debug_mode
- fs_accounts
- fs_active_plugins
- fs_gdpr
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/hooked-editable-content/freemius/templates/ajax-loader.php
- 8× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function freemius() in wp-content/plugins/hooked-editable-content/freemius/templates/partials/network-activation.php:6
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/hooked-editable-content/freemius/templates/account/partials/addon.php on line 7
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/hooked-editable-content/freemius/templates/account/partials/addon.php on line 8
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/hooked-editable-content/freemius/templates/account/partials/addon.php on line 7
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/hooked-editable-content/freemius/templates/account/partials/addon.php on line 6
- > PHP Fatal error
Uncaught Error: Call to a member function get_slug() on null in wp-content/plugins/hooked-editable-content/freemius/templates/account/partials/addon.php:9
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/hooked-editable-content/freemius/templates/account/partials/addon.php on line 8
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/hooked-editable-content/freemius/templates/account/partials/addon.php on line 6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
10 plugin tags: editor, add content, customize theme, modify template, add slider...
hooked-editable-content/hooked-editable-content.php Passed 13 tests
"Hooked Editable Content" version 1.1.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
111 characters long description:
Create WP or text editors on Edit Post and Edit Page screens for content to be hooked into actions and filters.
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
There were no executable files found in this plugin33,270 lines of code in 144 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 119 | 8,003 | 17,342 | 32,437 |
JavaScript | 8 | 83 | 117 | 460 |
Markdown | 1 | 68 | 0 | 214 |
CSS | 15 | 23 | 17 | 132 |
JSON | 1 | 0 | 0 | 27 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
Please fix the following
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 2,895)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 80.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,895.00 |
Average method complexity | 4.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 55 | |
▷ Abstract classes | 2 | 3.64% |
▷ Concrete classes | 53 | 96.36% |
▷ Final classes | 0 | 0.00% |
Methods | 1,236 | |
▷ Static methods | 210 | 16.99% |
▷ Public methods | 868 | 70.23% |
▷ Protected methods | 24 | 1.94% |
▷ Private methods | 344 | 27.83% |
Functions | 98 | |
▷ Named functions | 98 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 124 | |
▷ Global constants | 99 | 79.84% |
▷ Class constants | 25 | 20.16% |
▷ Public constants | 25 | 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
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/hooked-editable-content.png | 5.02KB | 2.61KB | ▼ 47.92% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |