89% deema-affiliate-link-generator

Code Review | Deema Affiliate link generator

WordPress plugin Deema Affiliate link generator scored 89% from 54 tests.

About plugin

  • Plugin page: deema-affiliate-l...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.9.0
  • WordPress version: 6.3.1
  • First release: Apr 18, 2022
  • Latest release: Apr 18, 2022
  • Number of updates: 2
  • Update frequency: every 3.0 days
  • Top authors: thedeema (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 256 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

Analyzing server-side resources used by Deema Affiliate link generator
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.50 ▼4.67
Dashboard /wp-admin3.31 ▲0.0147.43 ▼1.82
Posts /wp-admin/edit.php3.37 ▲0.0148.89 ▲2.57
Add New Post /wp-admin/post-new.php5.89 ▲0.0185.51 ▼11.55
Media Library /wp-admin/upload.php3.24 ▲0.0131.85 ▼0.13

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Deema Affiliate link generator
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲8113.21 ▼1.431.63 ▼0.3540.20 ▲3.51
Dashboard /wp-admin2,219 ▲345.95 ▲0.08108.66 ▼1.3142.78 ▼4.24
Posts /wp-admin/edit.php2,102 ▲132.02 ▲0.0139.70 ▼0.4339.45 ▲3.31
Add New Post /wp-admin/post-new.php1,546 ▲3222.97 ▲5.27614.79 ▲34.2156.55 ▲7.62
Media Library /wp-admin/upload.php1,404 ▲164.20 ▲0.0196.49 ▼4.3443.41 ▲2.01

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
No output text or server-side errors detected on direct access of PHP files

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 Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
1 plugin tags: affiliate

deema-affiliate-link-generator/deemaaffiliate-link-generator.php 77% from 13 tests

Analyzing the main PHP file in "Deema Affiliate link generator" version 1.0
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("deema-affiliate-link-generator.php" instead of "deemaaffiliate-link-generator.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 162 characters long)
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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
Everything looks great! No dangerous files found in this plugin106 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11310106

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.17
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 functions685.71%
▷ Anonymous functions114.29%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.07MB with 0.06MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/deema-affiliate.png76.00KB18.77KB▼ 75.30%