Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼2.85ms] Passed 4 tests
Server-side resources used by Thank You NHS
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 39.55 ▼6.05 |
Dashboard /wp-admin | 3.32 ▲0.01 | 45.94 ▼0.58 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 54.77 ▲8.85 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 83.29 ▼6.03 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.29 ▲1.27 |
NHS Banner Settings /wp-admin/options-general.php?page=thank_you_nhs_options | 3.25 | 28.93 |
Server storage [IO: ▲0.44MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Thank You NHS
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲62 | 13.17 ▼1.06 | 5.34 ▲2.99 | 43.31 ▼0.33 |
Dashboard /wp-admin | 2,213 ▲25 | 5.84 ▲0.95 | 97.70 ▼8.82 | 41.84 ▲2.07 |
Posts /wp-admin/edit.php | 2,096 ▲4 | 2.04 ▼0.01 | 41.31 ▼4.26 | 42.12 ▲8.37 |
Add New Post /wp-admin/post-new.php | 1,517 ▼21 | 17.58 ▼5.39 | 689.13 ▲68.64 | 50.20 ▼13.56 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.25 ▲0.04 | 103.39 ▲2.10 | 43.43 ▲0.40 |
NHS Banner Settings /wp-admin/options-general.php?page=thank_you_nhs_options | 2,701 | 1.76 | 29.35 | 26.24 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- 5 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=thank_you_nhs_options
- > Notice in wp-content/plugins/thank-you-nhs/thank-you-nhs-settings.php+43
Trying to access array offset on value of type bool
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 items
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/thank-you-nhs/js/script.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/thank-you-nhs/thank-you-nhs-settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/thank-you-nhs/thank-you-nhs.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/thank-you-nhs/css/styles.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Tags: You are using too many tags: 11 tag instead of maximum 10
thank-you-nhs/thank-you-nhs.php Passed 13 tests
The principal PHP file in "Thank You NHS" v. 1.0 is loaded by WordPress automatically on each request
89 characters long description:
Adding rainbows to your site to spread hope and say thank you to the NHS and key workers.
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
Everything looks great! No dangerous files found in this plugin1,151 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 3 | 0 | 3 | 953 |
PHP | 4 | 28 | 31 | 198 |
PHP code Passed 2 tests
This is a very shot 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.23 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 4 | 50.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/rainbow-cursor.png | 2.63KB | 1.76KB | ▼ 33.20% |
images/rainbow-pointer.png | 2.86KB | 1.84KB | ▼ 35.76% |