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.05MB] [CPU: ▼1.03ms] Passed 4 tests
Analyzing server-side resources used by Rescue Children Banner
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 44.50 ▲1.94 |
Dashboard /wp-admin | 3.35 ▲0.05 | 54.09 ▲1.65 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 52.06 ▲0.01 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 87.93 ▼7.72 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 37.51 ▲2.72 |
Rescue Children Banner /wp-admin/options-general.php?page=rcb_settings | 3.24 | 34.62 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Rescue Children Banner
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,900 ▲154 | 14.00 ▼0.38 | 6.03 ▲3.68 | 41.80 ▼2.09 |
Dashboard /wp-admin | 2,213 ▲25 | 4.81 ▼0.05 | 115.13 ▲12.94 | 42.56 ▲1.10 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.02 ▼0.01 | 36.16 ▼3.46 | 35.24 ▼2.72 |
Add New Post /wp-admin/post-new.php | 1,517 ▼19 | 17.41 ▼5.80 | 657.74 ▼30.09 | 53.48 ▼2.33 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.22 ▼0.00 | 104.28 ▲2.03 | 48.78 ▲2.32 |
Rescue Children Banner /wp-admin/options-general.php?page=rcb_settings | 861 | 2.04 | 28.00 | 27.45 |
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
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
- 10× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/rescue-children-banner/views/requirements-not-met.php:5
- > PHP Notice
Undefined variable: field in wp-content/plugins/rescue-children-banner/views/setting-fields.php on line 20
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/rescue-children-banner/views/settings.php:3
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/rescue-children-banner/views/setting-fields.php on line 20
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/rescue-children-banner/views/setting-fields.php on line 1
- > PHP Notice
Undefined variable: field in wp-content/plugins/rescue-children-banner/views/setting-fields.php on line 1
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/rescue-children-banner/views/setting-fields.php on line 10
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/rescue-children-banner/views/banner-markup.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/rescue-children-banner/bootstrap.php:13
- > PHP Notice
Undefined variable: field in wp-content/plugins/rescue-children-banner/views/setting-fields.php on line 10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% 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
Attributes that need to be fixed:
- Screenshots: No descriptions were found for these screenshots #2, #3 in rescue-children-banner/assets to your readme.txt
rescue-children-banner/bootstrap.php 92% from 13 tests
"Rescue Children Banner" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("rescue-children-banner.php" instead of "bootstrap.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin275 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 51 | 71 | 219 |
CSS | 1 | 8 | 1 | 46 |
JavaScript | 1 | 1 | 1 | 10 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 4.50 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 2 | 50.00% |
▷ Class constants | 2 | 50.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/rescue-children-top-right.png | 17.22KB | 7.88KB | ▼ 54.21% |
images/rescue-children-top-left.png | 15.80KB | 7.90KB | ▼ 50.02% |
images/add-to-website.png | 1.79KB | 1.76KB | ▼ 1.80% |