84% listen-shortcode

Code Review | Listen Shortcode

WordPress plugin Listen Shortcode scored84%from 54 tests.

About plugin

  • Plugin page: listen-shortcode
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.0
  • WordPress version: 6.3.1
  • First release: Oct 16, 2014
  • Latest release: Mar 8, 2015
  • Number of updates: 3
  • Update frequency: every 47.7 days
  • Top authors: konforti (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,183 total downloads

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.00MB] [CPU: ▼7.64ms] Passed 4 tests

A check of server-side resources used by Listen Shortcode
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0042.98 ▼8.79
Dashboard /wp-admin3.31 ▲0.0151.82 ▲0.90
Posts /wp-admin/edit.php3.36 ▲0.0055.25 ▼2.29
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.16 ▼20.38
Media Library /wp-admin/upload.php3.23 ▲0.0038.60 ▲3.81

Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Listen Shortcode
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.41 ▲0.011.74 ▼0.2542.21 ▼3.76
Dashboard /wp-admin2,206 ▲184.84 ▼1.06107.43 ▼1.8944.04 ▲4.52
Posts /wp-admin/edit.php2,086 ▼32.02 ▲0.0036.19 ▼4.8534.79 ▼2.19
Add New Post /wp-admin/post-new.php1,528 ▼623.34 ▲0.33677.70 ▼1.2254.93 ▲1.13
Media Library /wp-admin/upload.php1,391 ▲34.21 ▲0.01100.16 ▼4.4247.23 ▲2.18

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/listen-shortcode/heganoo-shortcode.php:52

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: listen, shortcode, player, js, audio

listen-shortcode/heganoo-shortcode.php 92% from 13 tests

The main PHP file in "Listen Shortcode" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("listen-shortcode.php" instead of "heganoo-shortcode.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
Good job! No executable or dangerous file extensions detected89 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript115367
PHP182222

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.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 Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin