89% affiliates-formidable

Code Review | Affiliates Formidable

WordPress plugin Affiliates Formidable scored89%from 54 tests.

About plugin

  • Plugin page: affiliates-formid...
  • Plugin version: 3.1.0
  • PHP compatiblity: 5.6.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-5.7
  • WordPress version: 6.3.1
  • First release: Nov 19, 2017
  • Latest release: Apr 4, 2021
  • Number of updates: 7
  • Update frequency: every 176.0 days
  • Top authors: itthinx (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /3,063 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by Affiliates Formidable
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0240.28 ▼1.07
Dashboard /wp-admin3.33 ▲0.0346.90 ▼5.06
Posts /wp-admin/edit.php3.38 ▲0.0249.25 ▲1.99
Add New Post /wp-admin/post-new.php5.91 ▲0.0281.74 ▼0.55
Media Library /wp-admin/upload.php3.25 ▲0.0236.18 ▲2.90

Server storage [IO: ▲0.11MB] [DB: ▲0.07MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Affiliates Formidable
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲4413.18 ▼1.454.50 ▲2.4438.52 ▼5.13
Dashboard /wp-admin2,218 ▲405.87 ▲0.89108.21 ▼17.3238.68 ▼4.72
Posts /wp-admin/edit.php2,106 ▲172.02 ▼0.0339.88 ▲4.4837.80 ▲5.62
Add New Post /wp-admin/post-new.php1,549 ▲1623.44 ▲0.41593.17 ▼82.5255.03 ▼1.38
Media Library /wp-admin/upload.php1,400 ▲214.28 ▲0.05101.06 ▲3.4343.39 ▼0.11

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 22 tag instead of maximum 10
  • Screenshots: These screenshots need descriptions #1, #2, #3, #4, #5, #6 in affiliates-formidable/assets to your readme.txt
The official readme.txt is a good inspiration

affiliates-formidable/affiliates-formidable.php 92% from 13 tests

Analyzing the main PHP file in "Affiliates Formidable" version 3.1.0
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 323 characters long)

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
Everything looks great! No dangerous files found in this plugin1,161 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP71524061,135
CSS111926

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity34.83
▷ Minimum class complexity2.00
▷ Maximum class complexity86.00
Average method complexity7.15
▷ Minimum method complexity1.00
▷ Maximum method complexity41.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods33
▷ Static methods2781.82%
▷ Public methods3296.97%
▷ Protected methods00.00%
▷ Private methods13.03%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants20
▷ Global constants630.00%
▷ Class constants1470.00%
▷ Public constants14100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/affiliates-formidable-icon.png0.53KB0.27KB▼ 49.91%
images/affiliates-registration-formidable-icon.png0.60KB0.48KB▼ 20.00%