74% inrdeals-url-appender

Code Review | INRDeals - All in One Auto Affiliate Linker

WordPress plugin INRDeals - All in One Auto Affiliate Linker scored74%from 54 tests.

About plugin

  • Plugin page: inrdeals-url-appe...
  • Plugin version: 5.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.2.2
  • WordPress version: 6.3.1
  • First release: Dec 20, 2016
  • Latest release: Jul 3, 2019
  • Number of updates: 42
  • Update frequency: every 21.8 days
  • Top authors: inrdeals (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /6,779 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▲1.57ms] Passed 4 tests

An overview of server-side resources used by INRDeals - All in One Auto Affiliate Linker
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1541.82 ▼1.54
Dashboard /wp-admin3.32 ▲0.0247.30 ▲3.16
Posts /wp-admin/edit.php3.37 ▲0.0150.48 ▲4.23
Add New Post /wp-admin/post-new.php5.92 ▲0.0394.70 ▲3.86
Media Library /wp-admin/upload.php3.24 ▲0.0137.68 ▲0.81

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: 1 new table, 6 new options
New tables
wp_inrupp_appender_db
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

INRDeals - All in One Auto Affiliate Linker: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,028 ▲29314.56 ▼0.0315.57 ▲13.8744.47 ▼5.71
Dashboard /wp-admin2,230 ▲424.95 ▼0.07108.90 ▼6.5441.42 ▼3.75
Posts /wp-admin/edit.php2,117 ▲252.23 ▲0.2239.75 ▼4.7434.57 ▼1.18
Add New Post /wp-admin/post-new.php1,544 ▲2518.24 ▼4.90633.87 ▲23.6869.02 ▲20.82
Media Library /wp-admin/upload.php1,412 ▲304.24 ▲0.0898.06 ▼1.1843.95 ▲0.60

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_inrupp_appender_db
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, 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
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/inrdeals-url-appender/inrdeals-url-appender.php:267

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === inrdeals-url-appender === )
You can look at the official readme.txt

inrdeals-url-appender/inrdeals-url-appender.php Passed 13 tests

The entry point to "INRDeals - All in One Auto Affiliate Linker" version 5.0 is a PHP file that has certain tags in its header comment area
113 characters long description:
INRDeals-All in One Auto Affiliate Linker plugin replaces any link with your custom affiliate link automatically.

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
No dangerous file extensions were detected814 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
CSS238157560
PHP11313248
JavaScript1006

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.21
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%
Functions7
▷ Named functions7100.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
1 compressed PNG file occupies 0.01MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/inrdeals.png8.32KB9.19KB0.00%