84% income-activator-referral-revenue

Code Review | Income Activator Referral Revenue

WordPress plugin Income Activator Referral Revenue scored84%from 54 tests.

About plugin

  • Plugin page: income-activator-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 6.3.1
  • First release: Jul 7, 2015
  • Latest release: Jul 7, 2015
  • Number of updates: 7
  • Update frequency: every 190.4 days
  • Top authors: IncomeActivator (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,122 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▼0.03MB] [CPU: ▼10.36ms] Passed 4 tests

Analyzing server-side resources used by Income Activator Referral Revenue
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▼0.0138.65 ▼1.26
Dashboard /wp-admin3.31 ▼0.0342.15 ▼15.44
Posts /wp-admin/edit.php3.36 ▲0.0141.12 ▼6.81
Add New Post /wp-admin/post-new.php5.79 ▼0.1079.13 ▼17.92
Media Library /wp-admin/upload.php3.23 ▲0.0137.88 ▲2.82

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Income Activator Referral Revenue
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲6314.25 ▼0.101.96 ▼0.2436.86 ▼7.68
Dashboard /wp-admin2,215 ▲415.52 ▼0.1584.97 ▼12.1486.18 ▲35.57
Posts /wp-admin/edit.php2,120 ▲202.03 ▲0.0537.19 ▲1.1334.44 ▲1.22
Add New Post /wp-admin/post-new.php1,697 ▲17120.01 ▼3.06637.42 ▲9.3171.68 ▲4.32
Media Library /wp-admin/upload.php1,420 ▲234.23 ▼0.01101.03 ▼1.55106.02 ▲62.14

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

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)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/income-activator-referral-revenue/IncomeActivator.php:34

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: referral form, income, referrals, shortcode, leads...

income-activator-referral-revenue/IncomeActivator.php 92% from 13 tests

The primary PHP file in "Income Activator Referral Revenue" version 1.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("income-activator-referral-revenue.php" instead of "IncomeActivator.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin78 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1442778

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.00
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 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 1.51MB with 0.98MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-3.png500.38KB159.76KB▼ 68.07%
assets/screenshot-1.png90.79KB31.49KB▼ 65.32%
Images/icon.png1.34KB0.48KB▼ 64.50%
assets/screenshot-4.png839.02KB317.43KB▼ 62.17%
assets/screenshot-2.png118.06KB43.61KB▼ 63.07%