90% deema-affiliate-for-woocommerce

Code Review | Deema Affiliate for Woocommerce

WordPress plugin Deema Affiliate for Woocommerce scored90%from 54 tests.

About plugin

  • Plugin page: deema-affiliate-f...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.6.0
  • WordPress version: 6.3.1
  • First release: Feb 6, 2021
  • Latest release: Feb 6, 2021
  • Number of updates: 2
  • Update frequency: every 1.5 days
  • Top authors: thedeema (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /355 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by Deema Affiliate for Woocommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.64 ▼5.38
Dashboard /wp-admin3.33 ▼0.0251.10 ▼36.73
Posts /wp-admin/edit.php3.38 ▲0.0254.96 ▲5.51
Add New Post /wp-admin/post-new.php5.91 ▲0.0296.83 ▼7.38
Media Library /wp-admin/upload.php3.25 ▲0.0236.18 ▼3.39

Server storage [IO: ▲0.09MB] [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: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Deema Affiliate for Woocommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.72 ▲0.371.73 ▼0.0748.26 ▲5.67
Dashboard /wp-admin2,198 ▲215.57 ▼0.0793.46 ▲7.9441.52 ▼5.55
Posts /wp-admin/edit.php2,100 ▼01.99 ▼0.0040.95 ▲5.4334.49 ▼3.92
Add New Post /wp-admin/post-new.php1,526 ▼023.05 ▲0.08592.13 ▼108.4747.77 ▼12.44
Media Library /wp-admin/upload.php1,400 ▼04.17 ▼0.0796.72 ▼14.4443.22 ▼4.28

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

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 no errors were found, this is by no means an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

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
1 plugin tags: affiliate

deema-affiliate-for-woocommerce/deema-affiliate-for-woocommerce.php 92% from 13 tests

The entry point to "Deema Affiliate for Woocommerce" version 1.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin163 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP12218122
PO File18841

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
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%