83% ultimate-side-banners

Code Review | Ultimate Side banners

WordPress plugin Ultimate Side banners scored83%from 54 tests.

About plugin

  • Plugin page: ultimate-side-ban...
  • Plugin version: 0.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-4.5.3
  • WordPress version: 6.3.1
  • First release: Jul 5, 2016
  • Latest release: Jul 5, 2016
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: dwampamba (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,467 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.03MB] [CPU: ▼12.89ms] Passed 4 tests

An overview of server-side resources used by Ultimate Side banners
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.78 ▲0.0546.73 ▼10.13
Dashboard /wp-admin3.61 ▼0.0251.15 ▼19.75
Posts /wp-admin/edit.php3.73 ▲0.0554.09 ▲0.90
Add New Post /wp-admin/post-new.php6.20 ▲0.0596.54 ▼22.49
Media Library /wp-admin/upload.php3.54 ▲0.0540.37 ▲0.80

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
widget_recent-posts
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Ultimate Side banners
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲7014.29 ▼0.101.96 ▲0.0648.35 ▲4.49
Dashboard /wp-admin2,209 ▲355.70 ▲0.0994.13 ▲0.9839.33 ▼5.43
Posts /wp-admin/edit.php2,115 ▲152.03 ▲0.0252.10 ▲15.7138.96 ▲3.37
Add New Post /wp-admin/post-new.php1,558 ▲3223.26 ▲5.50683.82 ▲4.9858.16 ▲7.81
Media Library /wp-admin/upload.php1,409 ▲64.23 ▼0.0197.36 ▼10.2845.74 ▼0.37

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ultimate-side-banners/usb-side-banners.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Screenshots: Please add an image for screenshot #1 (Screenshots to come in version 0.0.4)
You can look at the official readme.txt

ultimate-side-banners/usb-side-banners.php 77% from 13 tests

The main PHP file in "Ultimate Side banners" ver. 0.0.2 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Description: The description should be shorter than 140 characters (currently 310 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("ultimate-side-banners.php" instead of "usb-side-banners.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin219 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1125219

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.47
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%
Functions5
▷ Named functions5100.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.03MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/banner-1544x500.png18.13KB8.00KB▼ 55.89%
assets/banner-772x250.png14.26KB5.87KB▼ 58.84%