Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼5.25ms] Passed 4 tests
A check of server-side resources used by SA Coronavirus Banner
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.44 ▼0.02 | 28.12 ▼12.40 |
Dashboard /wp-admin | 3.37 ▲0.07 | 51.84 ▼3.15 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 48.97 ▼2.43 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 85.39 ▼3.03 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 36.49 ▲1.54 |
Server storage [IO: ▲0.29MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by SA Coronavirus Banner
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,917 ▲156 | 14.07 ▼0.46 | 9.16 ▲7.55 | 48.01 ▼0.82 |
Dashboard /wp-admin | 2,239 ▲59 | 4.96 ▼0.71 | 88.86 ▼0.69 | 81.79 ▲37.62 |
Posts /wp-admin/edit.php | 2,150 ▲47 | 2.33 ▲0.25 | 39.40 ▼4.08 | 36.41 ▼4.07 |
Add New Post /wp-admin/post-new.php | 1,562 ▲36 | 23.67 ▲0.44 | 776.84 ▲92.35 | 37.09 ▼13.65 |
Media Library /wp-admin/upload.php | 1,441 ▲41 | 4.48 ▲0.31 | 104.44 ▼4.50 | 82.32 ▲34.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means 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
Almost there! Just fix the following items
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function SA\\Covid19\\BannerDisplay\\add_filter() in wp-content/plugins/sa-coronavirus-banner/includes/banner.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/sa-coronavirus-banner/includes/user/banner.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function SA\\Covid19\\BannerDisplay\\add_filter() in wp-content/plugins/sa-coronavirus-banner/includes/banner.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function SA\\Covid19\\BannerDisplay\\add_filter() in wp-content/plugins/sa-coronavirus-banner/includes/banner.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: south-africa, covid-19
sa-coronavirus-banner/sa-coronavirus-banner.php Passed 13 tests
This is the main PHP file of "SA Coronavirus Banner" version 2.1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
107 characters long description:
Options to add a banner of your choice to your WordPress site as stipulated by the South African Goverment.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin533 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 162 | 116 | 330 |
CSS | 2 | 24 | 0 | 155 |
JavaScript | 6 | 5 | 3 | 34 |
Markdown | 1 | 11 | 0 | 14 |
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.29 |
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 | 4 | |
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 | 21 | |
▷ Named functions | 20 | 95.24% |
▷ Anonymous functions | 1 | 4.76% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/sa-flag.png | 1.51KB | 1.21KB | ▼ 19.94% |