10% as-heard-on

Code Review | As Heard On

WordPress plugin As Heard On scored10%from 54 tests.

About plugin

  • Plugin page: as-heard-on
  • Plugin version: 1.15
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-5.8
  • WordPress version: 6.3.1
  • First release: Aug 26, 2013
  • Latest release: Sep 8, 2021
  • Number of updates: 65
  • Update frequency: every 45.2 days
  • Top authors: DustinHartzler (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active /3,986 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.28 ▼1.184.63 ▼36.91
Dashboard /wp-admin2.30 ▼1.057.12 ▼55.33
Posts /wp-admin/edit.php2.30 ▼1.066.44 ▼40.84
Add New Post /wp-admin/post-new.php2.30 ▼3.599.37 ▼83.28
Media Library /wp-admin/upload.php2.30 ▼0.936.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,925 ▲19014.13 ▼0.285.71 ▲3.8044.46 ▼3.05
Dashboard /wp-admin2,241 ▲565.09 ▼0.78105.41 ▼13.2938.74 ▼6.27
Posts /wp-admin/edit.php2,125 ▲362.63 ▲0.5846.08 ▲6.2235.26 ▲0.46
Add New Post /wp-admin/post-new.php1,534 ▼123.22 ▲0.27674.77 ▲17.7070.59 ▲18.27
Media Library /wp-admin/upload.php1,420 ▲324.34 ▲0.1099.98 ▼14.7242.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP3126116786
JavaScript83212419
CSS44419151
HTML236085
Markdown131038

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 code0.24
Average class complexity35.50
▷ Minimum class complexity7.00
▷ Maximum class complexity64.00
Average method complexity3.65
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods26
▷ Static methods00.00%
▷ Public methods26100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
assets/banner-772x250.png205.58KB63.88KB▼ 68.93%
assets/screenshot-3.png28.87KB13.35KB▼ 53.76%
podcast_icon.png1.93KB0.50KB▼ 73.90%
assets/Album.png71.99KB34.73KB▼ 51.75%
assets/banner-1544×500.png244.86KB83.93KB▼ 65.72%