Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.87ms] Passed 4 tests
A check of server-side resources used by Footer header JS & CSS
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 47.19 ▲1.28 |
Dashboard /wp-admin | 3.31 ▲0.01 | 53.06 ▼4.80 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 50.16 ▼4.04 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 85.88 ▼7.93 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.99 ▲2.60 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Footer header JS & CSS
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.38 ▼0.18 | 1.69 ▲0.01 | 43.12 ▼2.87 |
Dashboard /wp-admin | 2,199 ▲22 | 5.64 ▼0.13 | 88.36 ▼8.14 | 43.11 ▲2.55 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.01 ▲0.04 | 34.48 ▼5.83 | 37.48 ▲1.86 |
Add New Post /wp-admin/post-new.php | 1,552 ▲26 | 23.39 ▲5.81 | 674.91 ▲30.84 | 54.58 ▲1.42 |
Media Library /wp-admin/upload.php | 1,401 ▼2 | 4.22 ▲0.03 | 95.78 ▼0.88 | 43.01 ▲2.18 |
Footer header js & css /wp-admin/footer-header-js-and-css.php | 26 | 0.44 | 0.12 | 15.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
Almost there! Just fix the following items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/footer-header-js-css/footer-header-js-and-css.php:44
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/footer-header-js-css/main-page.php:18
- > 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 fix the following user-side errors
- > GET request to /wp-admin/footer-header-js-and-css.php
- > Network (severe)
wp-admin/footer-header-js-and-css.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 96% from 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
9 plugin tags: styles, footer, handle, header, scripts...
footer-header-js-css/footer-header-js-and-css.php 92% from 13 tests
The primary PHP file in "Footer header JS & CSS" version 1.2.2 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("footer-header-js-css.php" instead of "footer-header-js-and-css.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected226 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 37 | 58 | 226 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 3.67 |
▷ 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 | 0 | 0.00% |
▷ Public methods | 3 | 42.86% |
▷ Protected methods | 4 | 57.14% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 5 | 100.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin