Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼4.73ms] Passed 4 tests
Analyzing server-side resources used by TW Header & Footer Codes
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 38.48 ▼6.89 |
Dashboard /wp-admin | 3.37 ▲0.06 | 45.66 ▼3.25 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 55.18 ▲6.19 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 91.86 ▼7.62 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 33.59 ▼1.15 |
TW Header & Footer Codes /wp-admin/options-general.php?page=twhfc | 3.25 | 29.16 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
twhfc_options |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for TW Header & Footer Codes
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 14.44 ▲0.19 | 1.73 ▼0.08 | 39.12 ▼5.12 |
Dashboard /wp-admin | 2,210 ▲22 | 6.04 ▲0.99 | 113.01 ▲12.11 | 42.97 ▼0.24 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.14 ▲0.08 | 38.96 ▼5.76 | 36.78 ▲2.51 |
Add New Post /wp-admin/post-new.php | 1,545 ▲3 | 18.29 ▼0.18 | 613.76 ▲19.75 | 52.19 ▼0.64 |
Media Library /wp-admin/upload.php | 1,395 ▲13 | 4.17 ▼0.06 | 100.15 ▲3.67 | 42.07 ▼3.64 |
TW Header & Footer Codes /wp-admin/options-general.php?page=twhfc | 909 | 2.05 | 23.97 | 28.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- twhfc_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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 take a closer look at the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tw-header-footer-codes/includes/functions.php:22
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
tw-header-footer-codes/tw-header-footer-codes.php Passed 13 tests
Analyzing the main PHP file in "TW Header & Footer Codes" version 1.0.4
67 characters long description:
Add custom header and footer codes anywhere in your WordPress site.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected339 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 58 | 91 | 235 |
PO File | 1 | 23 | 23 | 80 |
CSS | 1 | 3 | 0 | 24 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/logo-themewarrior.png | 8.40KB | 3.84KB | ▼ 54.30% |