84% azonbox

Code Review | AzonBox

WordPress plugin AzonBox scored84%from 54 tests.

About plugin

  • Plugin page: azonbox
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9.0-4.5
  • WordPress version: 6.3.1
  • First release: Jul 6, 2015
  • Latest release: Feb 7, 2016
  • Number of updates: 31
  • Update frequency: every 6.9 days
  • Top authors: shohag121 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active /2,556 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 gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼10.49ms] Passed 4 tests

This is a short check of server-side resources used by AzonBox
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0442.46 ▼5.71
Dashboard /wp-admin3.36 ▲0.0151.33 ▼10.82
Posts /wp-admin/edit.php3.48 ▲0.1250.91 ▼10.40
Add New Post /wp-admin/post-new.php5.96 ▲0.0786.58 ▼15.03
Media Library /wp-admin/upload.php3.29 ▲0.0538.61 ▲2.24

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by AzonBox
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,859 ▲11313.41 ▼1.001.98 ▲0.3243.74 ▲1.68
Dashboard /wp-admin2,238 ▲475.17 ▲0.28101.04 ▼4.9772.08 ▲28.32
Posts /wp-admin/edit.php2,123 ▲312.33 ▲0.3635.65 ▼4.9434.21 ▼4.05
Add New Post /wp-admin/post-new.php1,540 ▲717.61 ▼5.54740.30 ▲84.2636.82 ▼28.61
Media Library /wp-admin/upload.php1,417 ▲264.40 ▲0.21110.19 ▲7.7390.93 ▲45.19

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

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
Please fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/azonbox/azonbox.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: amazon affiliate, call to action, azonbox, affiliate marketing, conversion rate optimization

azonbox/azonbox.php Passed 13 tests

"AzonBox" version 1.1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
83 characters long description:
Add custom content box for Amazon product to your post or page using Editor button.

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
Success! There were no dangerous files found in this plugin609 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP17279253
JavaScript240188
CSS2240168

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.10
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/ribbon2.png14.27KB0.16KB▼ 98.90%