Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.16MB] [CPU: ▼0.68ms] Passed 4 tests
Analyzing server-side resources used by CM Footnotes
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.15 | 37.39 ▲0.68 |
Dashboard /wp-admin | 3.51 ▲0.20 | 43.75 ▼13.93 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 48.51 ▲4.90 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 98.05 ▲5.63 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 39.92 ▲8.06 |
Upgrade ➤ /wp-admin/admin.php?page=cmf_pro | 3.38 | 32.27 |
User Guide /wp-admin/admin.php?page=cmf_about | 3.50 | 441.73 |
Settings /wp-admin/admin.php?page=cmf_settings | 3.44 | 40.24 |
Server storage [IO: ▲1.28MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 99 new files
Database: no new tables, 7 new options
New WordPress options |
---|
cmf_options |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by CM Footnotes
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,944 ▲158 | 13.85 ▼0.48 | 7.41 ▲5.79 | 38.73 ▼1.27 |
Dashboard /wp-admin | 2,234 ▲57 | 5.58 ▲0.06 | 84.36 ▼1.69 | 82.40 ▲41.68 |
Posts /wp-admin/edit.php | 2,142 ▲42 | 2.08 ▲0.07 | 39.74 ▲4.64 | 36.89 ▲1.05 |
Add New Post /wp-admin/post-new.php | 6,342 ▲4,814 | 20.96 ▼2.07 | 921.38 ▲268.97 | 81.10 ▲28.76 |
Media Library /wp-admin/upload.php | 1,436 ▲33 | 4.23 ▼0.03 | 100.91 ▲0.85 | 82.65 ▲36.21 |
Upgrade ➤ /wp-admin/admin.php?page=cmf_pro | 1,756 | 2.23 | 34.69 | 98.81 |
User Guide /wp-admin/admin.php?page=cmf_about | 3,140 | 15.23 | 292.03 | 171.18 |
Settings /wp-admin/admin.php?page=cmf_settings | 2,197 | 3.12 | 60.92 | 67.29 |
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
Please fix the following items
- Zombie WordPress options detected upon uninstall: 7 options
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- cmf_options
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however 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
The following issues need your attention
- 3× PHP files output text when accessed directly:
- > /wp-content/plugins/cm-footnotes/views/backend/admin_extensions.php
- > /wp-content/plugins/cm-footnotes/views/backend/admin_about.php
- > /wp-content/plugins/cm-footnotes/views/backend/admin_nav.php
- 16× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Warning
Use of undefined constant CMF_MENU_OPTION - assumed 'CMF_MENU_OPTION' (this will throw an Error in a future version of PHP) in wp-content/plugins/cm-footnotes/views/backend/admin_template.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/cm-footnotes/cm-footnotes.php:91
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/cm-footnotes/package/views/userguide_free.php:8
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/cm-footnotes/views/backend/admin_nav.php on line 5
- > PHP Warning
Use of undefined constant CMTOC_NAME - assumed 'CMTOC_NAME' (this will throw an Error in a future version of PHP) in wp-content/plugins/cm-footnotes/views/backend/admin_about.php on line 4
- > PHP Warning
Use of undefined constant CMTOC_URL - assumed 'CMTOC_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/cm-footnotes/views/backend/admin_about.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function com\\cminds\\footnotes\\settings\\plugin_dir_path() in wp-content/plugins/cm-footnotes/settings/Settings.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function com\\cminds\\footnotes\\settings\\plugin_dir_path() in wp-content/plugins/cm-footnotes/settings/CMF_Settings.php:5
- > PHP Fatal error
Uncaught Error: Class 'CMF_Free' not found in wp-content/plugins/cm-footnotes/settings/config.php:41
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/cm-footnotes/package/cminds-plugin-config.php:4
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
- > GET request to /wp-admin/admin.php?page=cmf_about
- > Security (warning) in unknown
security - Error with Permissions-Policy header: Unrecognized feature: 'ambient-light-sensor'.
- > GET request to /wp-admin/admin.php?page=cmf_about
- > Security (warning) in unknown
security - Error with Permissions-Policy header: Unrecognized feature: 'bluetooth'.
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: bibliography, endnotes, citation, referencing, footnote
cm-footnotes/cm-footnotes.php Passed 13 tests
Analyzing the main PHP file in "CM Footnotes" version 2.1.1
89 characters long description:
FREE Version! Adds the footnote with the definitions for post/page and custom post types.
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 detected10,797 lines of code in 37 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 990 | 637 | 6,121 |
JavaScript | 10 | 204 | 65 | 2,371 |
CSS | 8 | 269 | 139 | 2,305 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 63.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 254.00 |
Average method complexity | 3.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 38.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 1 | 14.29% |
▷ Concrete classes | 6 | 85.71% |
▷ Final classes | 0 | 0.00% |
Methods | 162 | |
▷ Static methods | 90 | 55.56% |
▷ Public methods | 138 | 85.19% |
▷ Protected methods | 24 | 14.81% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 8 | 88.89% |
▷ Anonymous functions | 1 | 11.11% |
Constants | 38 | |
▷ Global constants | 16 | 42.11% |
▷ Class constants | 22 | 57.89% |
▷ Public constants | 22 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
56 PNG files occupy 0.57MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/css/images/help_hover.png | 0.85KB | 0.87KB | 0.00% |
package/css/images/ui-icons_cd0a0a_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
assets/css/images/ui-icons_222222_256x240.png | 6.76KB | 4.17KB | ▼ 38.24% |
assets/css/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.21KB | 0.08KB | ▼ 58.96% |
package/css/images/ui-icons_454545_256x240.png | 6.83KB | 4.17KB | ▼ 38.86% |