Benchmarks
Plugin footprint 22% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/as-heard-on/as-heard-on.php+768
Methods with the same name as their class will not be constructors in a future version of PHP; AHO_Widget has a deprecated constructor
Server metrics [RAM: ▼1.72MB] [CPU: ▼54.09ms] Passed 4 tests
Server-side resources used by As Heard On
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.28 ▼1.18 | 4.63 ▼36.91 |
Dashboard /wp-admin | 2.30 ▼1.05 | 7.12 ▼55.33 |
Posts /wp-admin/edit.php | 2.30 ▼1.06 | 6.44 ▼40.84 |
Add New Post /wp-admin/post-new.php | 2.30 ▼3.59 | 9.37 ▼83.28 |
Media Library /wp-admin/upload.php | 2.30 ▼0.93 | 6.19 ▼31.26 |
Server storage [IO: ▲0.43MB] [DB: ▲0.00MB] 67% from 3 tests
Filesystem and database footprint
Please fix the following
- Illegal file modification found: 1 file (0.00KB) outside of "wp-content/plugins/as-heard-on/" and "wp-content/uploads/"
- (new file) "wp-content/plugins/as-heard-on/assets/banner-1544\303\227500.png"
Filesystem: 25 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_aho |
New WordPress options |
---|
can_compress_scripts |
widget_podcasts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for As Heard On
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,925 ▲190 | 14.13 ▼0.28 | 5.71 ▲3.80 | 44.46 ▼3.05 |
Dashboard /wp-admin | 2,241 ▲56 | 5.09 ▼0.78 | 105.41 ▼13.29 | 38.74 ▼6.27 |
Posts /wp-admin/edit.php | 2,125 ▲36 | 2.63 ▲0.58 | 46.08 ▲6.22 | 35.26 ▲0.46 |
Add New Post /wp-admin/post-new.php | 1,534 ▼1 | 23.22 ▲0.27 | 674.77 ▲17.70 | 70.59 ▲18.27 |
Media Library /wp-admin/upload.php | 1,420 ▲32 | 4.34 ▲0.10 | 99.98 ▼14.72 | 42.87 ▼8.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/as-heard-on/as-heard-on.php+768
Methods with the same name as their class will not be constructors in a future version of PHP; AHO_Widget has a deprecated constructor
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_aho
- The uninstall procedure has failed, leaving 7 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_podcasts
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% 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 0% 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
Almost there! Just fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/as-heard-on/docs/documentation.php
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/as-heard-on/legacy.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/as-heard-on/as-heard-on.php:757
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were 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: testimonial, podcast, widget
as-heard-on/as-heard-on.php 92% from 13 tests
Analyzing the main PHP file in "As Heard On" version 1.15
You should first fix the following items:
- Description: Keep the plugin description shorter than 140 characters (currently 156 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin1,479 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 126 | 116 | 786 |
JavaScript | 8 | 32 | 12 | 419 |
CSS | 4 | 44 | 19 | 151 |
HTML | 2 | 36 | 0 | 85 |
Markdown | 1 | 31 | 0 | 38 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 35.50 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 64.00 |
Average method complexity | 3.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.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 | 26 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 26 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 0.59MB with 0.37MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-772x250.png | 205.58KB | 63.88KB | ▼ 68.93% |
assets/screenshot-3.png | 28.87KB | 13.35KB | ▼ 53.76% |
podcast_icon.png | 1.93KB | 0.50KB | ▼ 73.90% |
assets/Album.png | 71.99KB | 34.73KB | ▼ 51.75% |
assets/banner-1544×500.png | 244.86KB | 83.93KB | ▼ 65.72% |