Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/compassion-sponsored-child/com-sponsored-child.php+30
Function create_function() is deprecated
Server metrics [RAM: ▼1.96MB] [CPU: ▼50.68ms] Passed 4 tests
This is a short check of server-side resources used by Compassion Sponsored Child
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.43 | 5.66 ▼37.22 |
Dashboard /wp-admin | 2.05 ▼1.26 | 5.48 ▼42.94 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.46 ▼40.89 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.40 ▼81.65 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.02 ▼30.70 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_wp_compassion_sponsored_child |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Compassion Sponsored Child
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲96 | 13.53 ▼0.77 | 12.56 ▲10.60 | 36.30 ▼13.52 |
Dashboard /wp-admin | 2,206 ▲15 | 5.86 ▲0.99 | 96.48 ▼1.84 | 37.99 ▼6.05 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.99 ▲0.00 | 38.23 ▲3.22 | 36.01 ▲1.62 |
Add New Post /wp-admin/post-new.php | 1,542 ▲7 | 18.43 ▼4.58 | 615.67 ▼43.72 | 50.20 ▼2.18 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.21 ▼0.01 | 94.33 ▼8.91 | 44.85 ▲0.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/compassion-sponsored-child/com-sponsored-child.php+30
Function create_function() is deprecated
- The uninstall procedure has failed, leaving 7 options in the database
- widget_wp_compassion_sponsored_child
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/compassion-sponsored-child/templates/banner.php
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/compassion-sponsored-child/com-sponsored-child.php:22
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/compassion-sponsored-child/com-sponsored-child-widget-class.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: plugin, shortcode, widget
compassion-sponsored-child/com-sponsored-child.php 92% from 13 tests
The main PHP script in "Compassion Sponsored Child" version 1.1 is automatically included on every request by WordPress
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("compassion-sponsored-child.php" instead of "com-sponsored-child.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin239 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 1 | 4 | 191 |
PHP | 3 | 13 | 29 | 36 |
CSS | 1 | 0 | 0 | 12 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.00 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.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 | 2 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 2 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 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
PNG files should be compressed to save space and minimize bandwidth usage
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 |
img/button.png | 2.63KB | 1.55KB | ▼ 41.02% |