Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼5.61ms] Passed 4 tests
Server-side resources used by Inject Header And Footer
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.75 ▲0.02 | 43.56 ▼2.15 |
Dashboard /wp-admin | 4.32 ▲0.69 | 58.18 ▼3.44 |
Posts /wp-admin/edit.php | 3.70 ▲0.02 | 48.94 ▼8.87 |
Add New Post /wp-admin/post-new.php | 6.17 ▲0.02 | 88.61 ▼7.96 |
Media Library /wp-admin/upload.php | 3.51 ▲0.02 | 40.99 ▲2.31 |
Server storage [IO: ▲0.02MB] [DB: ▲0.14MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Inject Header And Footer
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,880 ▲145 | 14.67 ▼0.13 | 1.80 ▲0.15 | 41.69 ▼5.01 |
Dashboard /wp-admin | 2,274 ▲94 | 5.60 ▼0.05 | 86.04 ▼4.04 | 73.57 ▲29.79 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 2.01 ▲0.02 | 41.12 ▼3.42 | 44.53 ▲7.86 |
Add New Post /wp-admin/post-new.php | 1,562 ▲31 | 23.17 ▲0.02 | 675.39 ▲44.39 | 49.66 ▼4.03 |
Media Library /wp-admin/upload.php | 1,419 ▲16 | 4.13 ▼0.05 | 114.84 ▲12.56 | 49.20 ▲6.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.14MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/inject-header-and-footer/inject-header-and-footer.php:27
- > 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 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
5 plugin tags: add codes head section, insert scripts to header, insert scripts to footer, add insert scripts codes, add codes footer section
inject-header-and-footer/inject-header-and-footer.php 92% from 13 tests
The principal PHP file in "Inject Header And Footer" v. 1.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 155 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin134 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 45 | 35 | 105 |
CSS | 1 | 0 | 1 | 29 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/logo.png | 5.21KB | 1.48KB | ▼ 71.70% |
images/feed-logo.png | 5.06KB | 2.17KB | ▼ 57.04% |