83% tag-to-amazon-mp3

Code Review | Tag to AmazonMP3 Shortcode

WordPress plugin Tag to AmazonMP3 Shortcode scored83%from 54 tests.

About plugin

  • Plugin page: tag-to-amazon-mp3
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.5.2
  • WordPress version: 6.3.1
  • First release: Jun 21, 2013
  • Latest release: Jun 29, 2013
  • Number of updates: 5
  • Update frequency: every 1.6 days
  • Top authors: ypraise (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /899 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼9.08ms] Passed 4 tests

This is a short check of server-side resources used by Tag to AmazonMP3 Shortcode
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.54 ▼0.73
Dashboard /wp-admin3.31 ▲0.0148.34 ▼7.51
Posts /wp-admin/edit.php3.36 ▲0.0146.14 ▼2.69
Add New Post /wp-admin/post-new.php5.89 ▲0.0186.30 ▼19.21
Media Library /wp-admin/upload.php3.23 ▲0.0131.67 ▼6.90
Tag to AmazonMP3 /wp-admin/options-general.php?page=amaMP3_uk3.2031.73

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Tag to AmazonMP3 Shortcode
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲5813.24 ▼1.161.91 ▲0.1544.74 ▲3.35
Dashboard /wp-admin2,219 ▲165.83 ▼0.02101.88 ▼6.4543.11 ▼1.24
Posts /wp-admin/edit.php2,104 ▲41.99 ▼0.0735.99 ▼0.9136.30 ▼3.69
Add New Post /wp-admin/post-new.php1,553 ▲2723.48 ▲5.86666.77 ▼5.1656.41 ▼11.51
Media Library /wp-admin/upload.php1,404 ▲74.30 ▲0.0696.49 ▼14.9944.37 ▼1.71
Tag to AmazonMP3 /wp-admin/options-general.php?page=amaMP3_uk8772.0223.8640.04

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
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however 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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tag-to-amazon-mp3/tagtoamamp3.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Screenshots: Screenshot #1 (Player displayed in sidebar.) image required
  • Contributors: Contributors not specified
The official readme.txt might help

tag-to-amazon-mp3/tagtoamamp3.php 92% from 13 tests

The main PHP file in "Tag to AmazonMP3 Shortcode" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("tag-to-amazon-mp3.php" instead of "tagtoamamp3.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin82 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1472482

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.10
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%
Functions4
▷ Named functions4100.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
There were not PNG files found in your plugin