74% auto-link-maker-itunes-affiliate

Code Review | Auto Link Generator iTunes

WordPress plugin Auto Link Generator iTunes scored74%from 54 tests.

About plugin

  • Plugin page: auto-link-maker-i...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.4.2
  • WordPress version: 6.3.1
  • First release: Mar 11, 2016
  • Latest release: Mar 11, 2016
  • Number of updates: 8
  • Update frequency: N/A
  • Top authors: Styleyourworld24.de (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,865 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.95MB] [CPU: ▼39.25ms] Passed 4 tests

Analyzing server-side resources used by Auto Link Generator iTunes
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0135.54 ▼3.80
Dashboard /wp-admin3.00 ▼0.3423.44 ▼41.51
Posts /wp-admin/edit.php3.01 ▼0.3525.03 ▼27.68
Add New Post /wp-admin/post-new.php3.00 ▼2.8922.38 ▼78.35
Media Library /wp-admin/upload.php3.01 ▼0.2320.66 ▼9.47

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
widget_recent-comments
can_compress_scripts
recovery_mode_email_last_sent

Browser metrics Passed 4 tests

Auto Link Generator iTunes: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.58 ▼0.791.61 ▼0.2237.18 ▼6.72
Dashboard /wp-admin2,213 ▲284.85 ▼1.00103.79 ▼3.8338.36 ▼7.65
Posts /wp-admin/edit.php2,093 ▲42.02 ▲0.0040.04 ▼0.6536.01 ▼0.47
Add New Post /wp-admin/post-new.php1,517 ▼1717.69 ▼5.61616.23 ▼14.9753.25 ▼7.26
Media Library /wp-admin/upload.php1,386 ▲14.16 ▼0.0994.38 ▼8.6041.25 ▼3.09
Auto Link iTunes /wp-admin/options-general.php?page=Auto Link iTunes6781.538.1724.02

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin cannot be uninstalled
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • This plugin does not fully uninstall, leaving 7 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • recovery_mode_email_last_sent
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for 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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Parse error
      syntax error, unexpected end of file in wp-content/plugins/auto-link-maker-itunes-affiliate/autolink_import_admin.php on line 166

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Plugin Name: Please specify the plugin name on the first line ( === auto-link-maker-itunes-affiliate === )
The official readme.txt is a good inspiration

auto-link-maker-itunes-affiliate/index.php 92% from 13 tests

This is the main PHP file of "Auto Link Generator iTunes" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("auto-link-maker-itunes-affiliate.php" instead of "index.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
Success! There were no dangerous files found in this plugin472 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
SVG100288
PHP23935169
JavaScript20614
CSS1051

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.23
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
No PNG files were detected