10% ad-box-widtget-for-az-invest-affiliate-program

Code Review | Ad box widtget for az-invest affiliateprogram

WordPress plugin Ad box widtget for az-invest affiliateprogram scored10%from 54 tests.

About plugin

  • Plugin page: ad-box-widtget-fo...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.5.1
  • WordPress version: 6.3.1
  • First release: Oct 18, 2013
  • Latest release: Oct 18, 2013
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: ArturZ (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /923 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/ad-box-widtget-for-az-invest-affiliate-program/az_invest_affiliate.php+105
    Function create_function() is deprecated

Server metrics [RAM: ▼1.97MB] [CPU: ▼56.98ms] Passed 4 tests

Server-side resources used by Ad box widtget for az-invest affiliateprogram
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.07 ▼1.445.81 ▼32.25
Dashboard /wp-admin2.09 ▼1.306.26 ▼57.78
Posts /wp-admin/edit.php2.09 ▼1.315.83 ▼44.87
Add New Post /wp-admin/post-new.php2.09 ▼3.845.38 ▼93.00
Media Library /wp-admin/upload.php2.09 ▼1.186.86 ▼29.05

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_az_invest_affiliate
widget_recent-posts
db_upgraded
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Ad box widtget for az-invest affiliateprogram: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.24 ▼0.111.72 ▼0.1443.51 ▲0.53
Dashboard /wp-admin2,195 ▲155.62 ▼0.0690.35 ▲3.7538.65 ▼6.45
Posts /wp-admin/edit.php2,100 ▲211.96 ▼0.0036.35 ▲1.3133.97 ▼2.99
Add New Post /wp-admin/post-new.php1,526 ▼222.89 ▲0.02688.90 ▲31.8159.76 ▲11.41
Media Library /wp-admin/upload.php1,394 ▼94.23 ▲0.09110.68 ▲11.6547.27 ▲1.12

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/ad-box-widtget-for-az-invest-affiliate-program/az_invest_affiliate.php+105
    Function create_function() is deprecated
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_az_invest_affiliate
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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 items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/ad-box-widtget-for-az-invest-affiliate-program/az_invest_affiliate.php:12

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (http://www.az-invest.eu/downloads/plugin.png), #2 (http://www.az-invest.eu/downloads/plugin2.png)
  • Donate link: Please fix this invalid url: ""
You can take inspiration from this readme.txt

ad-box-widtget-for-az-invest-affiliate-program/az_invest_affiliate.php 92% from 13 tests

The main file in "Ad box widtget for az-invest affiliateprogram" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ad-box-widtget-for-az-invest-affiliate-program.php" instead of "az_invest_affiliate.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin105 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP2201888
JavaScript14014
CSS1003

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.07
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.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
2 PNG files occupy 0.15MB with 0.11MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/vtcbox.png84.16KB19.27KB▼ 77.11%
images/vtrbox.png65.99KB18.55KB▼ 71.89%