Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼13.52ms] Passed 4 tests
An overview of server-side resources used by AddFunc Head & Footer Code
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 35.36 ▼4.53 |
Dashboard /wp-admin | 3.35 ▲0.01 | 43.29 ▼26.96 |
Posts /wp-admin/edit.php | 3.40 ▲0.05 | 46.37 ▼2.61 |
Add New Post /wp-admin/post-new.php | 5.83 ▼0.06 | 79.89 ▼19.98 |
Media Library /wp-admin/upload.php | 3.27 ▲0.05 | 33.77 ▼0.01 |
Head & Footer Code /wp-admin/options-general.php?page=aFhfc_options | 3.24 | 32.29 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for AddFunc Head & Footer Code
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲83 | 13.22 ▼1.13 | 1.83 ▲0.07 | 40.34 ▼3.12 |
Dashboard /wp-admin | 2,207 ▲22 | 5.80 ▼0.07 | 94.77 ▼10.12 | 36.63 ▼3.01 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 1.99 ▲0.00 | 39.66 ▲2.77 | 35.34 ▲0.48 |
Add New Post /wp-admin/post-new.php | 6,276 ▲4,762 | 26.16 ▲8.47 | 891.89 ▲182.44 | 56.31 ▲2.95 |
Media Library /wp-admin/upload.php | 1,395 ▲13 | 4.22 ▲0.03 | 93.54 ▼14.33 | 43.38 ▼3.74 |
Head & Footer Code /wp-admin/options-general.php?page=aFhfc_options | 885 | 2.05 | 22.63 | 30.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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 items
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/addfunc-head-footer-code/addfunc-head-footer-code.php:91
- > PHP Notice
Undefined variable: plugin_id in wp-content/plugins/addfunc-head-footer-code/options.php on line 6
- > PHP Notice
Undefined variable: plugin_id in wp-content/plugins/addfunc-head-footer-code/options.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/addfunc-head-footer-code/options.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
addfunc-head-footer-code/addfunc-head-footer-code.php 92% from 13 tests
The entry point to "AddFunc Head & Footer Code" version 2.3 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 235 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected218 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 11 | 27 | 218 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 26.00 |
▷ Minimum class complexity | 26.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 4.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 7 | |
▷ Static methods | 7 | 100.00% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin