Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.55MB] [CPU: ▼4.60ms] 75% from 4 tests
An overview of server-side resources used by CM Header & Footer Script Loader
The following require your attention
- CPU: Try to keep total CPU usage under 500.00ms (currently 980.78ms on /wp-admin/admin.php?page=cm-handfsl)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.98 ▲0.51 | 46.96 ▲6.21 |
Dashboard /wp-admin | 3.93 ▲0.58 | 57.64 ▼7.38 |
Posts /wp-admin/edit.php | 3.98 ▲0.62 | 51.62 ▼1.01 |
Add New Post /wp-admin/post-new.php | 6.45 ▲0.56 | 88.88 ▼15.21 |
Media Library /wp-admin/upload.php | 3.79 ▲0.56 | 44.02 ▲5.20 |
User Guide /wp-admin/admin.php?page=cmhandfsl_about | 3.90 | 395.05 |
Settings /wp-admin/admin.php?page=cm-handfsl | 4.01 | 980.78 |
Upgrade ➤ /wp-admin/admin.php?page=cmhandfsl_pro | 3.78 | 36.64 |
Server storage [IO: ▲0.90MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 65 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by CM Header & Footer Script Loader
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,845 ▲84 | 14.69 ▲0.41 | 2.01 ▲0.37 | 45.26 ▼0.97 |
Dashboard /wp-admin | 2,220 ▲40 | 5.56 ▼0.11 | 83.83 ▼9.12 | 41.61 ▲2.51 |
Posts /wp-admin/edit.php | 2,131 ▲34 | 2.02 ▲0.06 | 37.82 ▼1.46 | 33.59 ▼7.69 |
Add New Post /wp-admin/post-new.php | 1,560 ▲19 | 18.31 ▼4.60 | 622.41 ▼32.14 | 76.45 ▲23.73 |
Media Library /wp-admin/upload.php | 1,431 ▲31 | 4.21 ▲0.01 | 96.47 ▼11.85 | 44.91 ▲1.70 |
User Guide /wp-admin/admin.php?page=cmhandfsl_about | 3,981 | 16.27 | 419.43 | 248.67 |
Settings /wp-admin/admin.php?page=cm-handfsl | 2,476 | 8.50 | 78.07 | 74.02 |
Upgrade ➤ /wp-admin/admin.php?page=cmhandfsl_pro | 1,234 | 2.11 | 34.73 | 55.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 3× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/cm-header-footer-script-loader/classes/class.cm-handfsl-backend.php
- > /wp-content/plugins/cm-header-footer-script-loader/classes/class.cm-handfsl-frontend.php
- > /wp-content/plugins/cm-header-footer-script-loader/cm-header-footer-script-loader.php
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/cm-header-footer-script-loader/package/cminds-plugin-config.php:4
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/cm-header-footer-script-loader/package/views/userguide_free.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/cm-header-footer-script-loader/package/views/plugin_compare_table.php:51
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/cm-header-footer-script-loader/package/views/registration.php:42
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/cm-header-footer-script-loader/package/cminds-plugin-config.php:4
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/admin.php?page=cmhandfsl_about
- > Security (warning) in unknown
security - Error with Permissions-Policy header: Unrecognized feature: 'ambient-light-sensor'.
- > GET request to /wp-admin/admin.php?page=cmhandfsl_about
- > Security (warning) in unknown
security - Error with Permissions-Policy header: Unrecognized feature: 'bluetooth'.
- > GET request to /wp-admin/admin.php?page=cmhandfsl_about
- > Deprecation (warning) in unknown
https://static.xx.fbcdn.net/rsrc.php/v3/yD/r/CxzjCMQABR5.js?_nc_x=Ij3Wp8lg5Kz 271 Listener added for a synchronous 'DOMSubtreeModified' DOM Mutation Event. This event type is deprecated (https://w3c.github.io/uievents/#legacy-event-types) and work is underway to remove it from this browser. Usage of this event listener will cause performance issues today, and represents a risk of future incompatibility. Consider using MutationObserver instead.
- > GET request to /wp-admin/admin.php?page=cmhandfsl_about
- > Console-api (severe) in unknown
https://static.xx.fbcdn.net/rsrc.php/v3/yD/r/CxzjCMQABR5.js?_nc_x=Ij3Wp8lg5Kz 60:573 "ErrorUtils caught an error:\n\nCannot listen to an undefined element. [Caught in: Tried to listen to element of type click]\n\nSubsequent non-fatal errors won't be logged; see https://fburl.com/debugjs."
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: scripts, optimize, styles, css, html
cm-header-footer-script-loader/cm-header-footer-script-loader.php Passed 13 tests
"CM Header & Footer Script Loader" version 1.1.8's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
76 characters long description:
This plugin allows you to load scripts and styles on selected posts or pages
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected5,599 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 865 | 560 | 4,793 |
CSS | 3 | 103 | 2 | 629 |
PO File | 1 | 45 | 47 | 121 |
JavaScript | 4 | 11 | 5 | 56 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 91.25 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 254.00 |
Average method complexity | 4.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 38.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 103 | |
▷ Static methods | 11 | 10.68% |
▷ Public methods | 92 | 89.32% |
▷ Protected methods | 9 | 8.74% |
▷ Private methods | 2 | 1.94% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 1 | 25.00% |
▷ Class constants | 3 | 75.00% |
▷ Public constants | 3 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
37 PNG files occupy 0.53MB with 0.29MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
package/views/searchreplace.png | 37.22KB | 10.60KB | ▼ 71.53% |
package/views/routes.png | 12.59KB | 4.78KB | ▼ 62.02% |
package/views/img/confetti.png | 2.77KB | 2.01KB | ▼ 27.65% |
package/views/answers.png | 38.71KB | 10.31KB | ▼ 73.37% |
package/css/images/ui-icons_222222_256x240.png | 6.76KB | 4.17KB | ▼ 38.24% |