79% easy-banner-link

Code Review | Easy Banner Link

WordPress plugin Easy Banner Link scored79%from 54 tests.

About plugin

  • Plugin page: easy-banner-link
  • Plugin version: 1.0.20
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1.1-6.0
  • WordPress version: 6.3.1
  • First release: Mar 27, 2019
  • Latest release: May 31, 2022
  • Number of updates: 33
  • Update frequency: every 35.2 days
  • Top authors: grooveline (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,631 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼2.64ms] Passed 4 tests

Server-side resources used by Easy Banner Link
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.86 ▲2.11
Dashboard /wp-admin3.32 ▲0.0247.81 ▲2.96
Posts /wp-admin/edit.php3.37 ▲0.0247.43 ▼0.36
Add New Post /wp-admin/post-new.php5.90 ▲0.0284.80 ▼12.75
Media Library /wp-admin/upload.php3.25 ▲0.0235.41 ▲0.43

Server storage [IO: ▲0.03MB] [DB: ▲0.07MB] Passed 3 tests

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: 1 new table, 8 new options
New tables
wp_inx_banner
New WordPress options
theysaidso_admin_options
inx_easybanner_version
widget_recent-comments
db_upgraded
can_compress_scripts
widget_inxeasybannerlink
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Easy Banner Link: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,801 ▲5513.89 ▼0.491.81 ▲0.1140.48 ▼2.26
Dashboard /wp-admin2,207 ▲275.58 ▼0.0893.26 ▲3.7943.82 ▲1.50
Posts /wp-admin/edit.php2,112 ▲121.99 ▼0.0534.27 ▼3.6138.74 ▲5.25
Add New Post /wp-admin/post-new.php1,538 ▼1223.42 ▲5.24623.35 ▲0.0272.37 ▲15.58
Media Library /wp-admin/upload.php1,406 ▲64.18 ▲0.0196.33 ▼6.9045.59 ▲3.46

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie tables were found after uninstall: 1 table
    • wp_inx_banner
  • The uninstall procedure has failed, leaving 8 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • widget_inxeasybannerlink
    • can_compress_scripts
    • inx_easybanner_version
    • db_upgraded
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Looking good! No server-side errors or output 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 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: easy, banner, inexio, link

easy-banner-link/inx-easy-banner-link.php 85% from 13 tests

This is the main PHP file of "Easy Banner Link" version 1.0.20, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
  • Main file name: Name the main plugin file the same as the plugin slug ("easy-banner-link.php" instead of "inx-easy-banner-link.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin719 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP112882719

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity86.00
▷ Minimum class complexity86.00
▷ Maximum class complexity86.00
Average method complexity8.08
▷ Minimum method complexity1.00
▷ Maximum method complexity45.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin