83% itunes-link-engine

Code Review | iTunes Link Engine

WordPress plugin iTunes Link Engine scored83%from 54 tests.

About plugin

  • Plugin page: itunes-link-engine
  • Plugin version: 1.4.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-6.0
  • WordPress version: 6.3.1
  • First release: Dec 8, 2014
  • Latest release: Aug 2, 2022
  • Number of updates: 40
  • Update frequency: every 70.0 days
  • Top authors: GeoRiot (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

200+ active /15,632 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 successfully, without throwing any errors or notices

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

Server-side resources used by iTunes Link Engine
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.12 ▲0.04
Dashboard /wp-admin3.32 ▼0.0250.66 ▼11.72
Posts /wp-admin/edit.php3.37 ▲0.0248.86 ▼7.50
Add New Post /wp-admin/post-new.php5.90 ▲0.0298.65 ▼19.40
Media Library /wp-admin/upload.php3.25 ▲0.0237.69 ▼0.74
iTunes Link Engine /wp-admin/options-general.php?page=itunes-link-engine3.3334.76

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, 16 new options
New WordPress options
genius_ile_dismiss_feedback
can_compress_scripts
genius_ile_api_secret
genius_ile_install_date
genius_ile_domain
theysaidso_admin_options
genius_ile_db_version
widget_theysaidso_widget
widget_recent-comments
db_upgraded
...

Browser metrics Passed 4 tests

An overview of browser requirements for iTunes Link Engine
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,918 ▲15713.55 ▼1.0710.50 ▲8.9141.92 ▲1.73
Dashboard /wp-admin2,218 ▲385.57 ▼0.0892.60 ▲3.0141.96 ▲1.38
Posts /wp-admin/edit.php2,104 ▲41.94 ▼0.0234.95 ▼2.5233.78 ▼0.99
Add New Post /wp-admin/post-new.php1,529 ▼523.64 ▲5.52686.53 ▲41.6455.40 ▼8.58
Media Library /wp-admin/upload.php1,407 ▲44.18 ▲0.0496.01 ▼2.0146.97 ▼0.35
iTunes Link Engine /wp-admin/options-general.php?page=itunes-link-engine1,2932.0227.6945.77

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • genius_ile_install_date
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/itunes-link-engine/itunes-link-engine.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/itunes-link-engine/options.php:2

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 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Add an image for screenshot #1 (**The Results:** Each user gets sent to the correct item in their local store. This is an example of a user from the United States clicking your link. They’re sent to [iTunes US](https://itunes.apple.com/us/album/id46846?i=46803) with your affiliate token attached.)
  • Tags: You are using too many tags: 13 tag instead of maximum 10
Please take inspiration from this readme.txt

itunes-link-engine/itunes-link-engine.php Passed 13 tests

"iTunes Link Engine" version 1.4.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
114 characters long description:
Automatically optimizes iTunes product links for your global audience and allows you to earn commissions on siles.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected881 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2210222881

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.24
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%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
10 PNG files occupy 1.05MB with 0.43MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/thumbup.png0.72KB0.93KB0.00%
img/thumbdown.png0.76KB0.96KB0.00%
screenshot-2.png200.30KB62.09KB▼ 69.00%
screenshot-5.png192.24KB64.08KB▼ 66.67%
screenshot-3.png202.05KB61.87KB▼ 69.38%