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: ▼11.13ms] Passed 4 tests
Server-side resources used by Azores Gov Banner
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 33.10 ▼5.25 |
Dashboard /wp-admin | 3.31 ▼0.04 | 42.09 ▼14.23 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 43.52 ▼0.31 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 78.31 ▼21.75 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 30.76 ▼3.27 |
Server storage [IO: ▲0.00MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Azores Gov Banner
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,881 ▲135 | 13.26 ▼1.16 | 6.96 ▲5.23 | 38.75 ▼7.22 |
Dashboard /wp-admin | 2,197 ▲6 | 5.83 ▼0.05 | 102.54 ▲1.96 | 40.96 ▼1.13 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.02 ▲0.02 | 33.44 ▼10.97 | 29.67 ▼5.41 |
Add New Post /wp-admin/post-new.php | 1,536 ▲8 | 23.24 ▲4.67 | 663.02 ▲45.69 | 51.79 ▼1.82 |
Media Library /wp-admin/upload.php | 1,382 ▼6 | 4.20 ▼0.03 | 96.48 ▼1.02 | 43.51 ▲1.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/azores-gov-banner/gov_banner.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: azores, government, banner
azores-gov-banner/gov_banner.php 92% from 13 tests
Analyzing the main PHP file in "Azores Gov Banner" version 3.0
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("azores-gov-banner.php" instead of "gov_banner.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected44 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 8 | 11 | 24 |
CSS | 1 | 3 | 0 | 20 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.00 |
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 | 3 | |
▷ Named functions | 3 | 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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/gov_acores_banner.png | 2.23KB | 2.07KB | ▼ 7.34% |