10% remove-yellow-bgbox

Code Review | Remove Yellow BGBOX

WordPress plugin Remove Yellow BGBOX scored 10% from 54 tests.

About plugin

  • Plugin page: remove-yellow-bgbox
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.4.1
  • WordPress version: 6.3.1
  • First release: Sep 17, 2019
  • Latest release: Jun 6, 2020
  • Number of updates: 9
  • Update frequency: every 29.2 days
  • Top authors: jay_patel (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 596 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Notice in wp-content/plugins/remove-yellow-bgbox/admin/settings.php+39
    Trying to access array offset on value of type bool

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

This is a short check of server-side resources used by Remove Yellow BGBOX
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.88 ▼4.28
Dashboard /wp-admin3.32 ▲0.0248.10 ▼2.21
Posts /wp-admin/edit.php3.37 ▲0.0245.69 ▼4.19
Add New Post /wp-admin/post-new.php5.92 ▲0.0483.61 ▼4.92
Media Library /wp-admin/upload.php3.24 ▲0.0235.94 ▼1.01
RYBB /wp-admin/admin.php?page=rybb_api_endpoints3.2431.14
Settings /wp-admin/admin.php?page=rybb_api_settings3.2532.46
Walk Through /wp-admin/admin.php?page=rybb_api_walk_help3.2329.35

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Remove Yellow BGBOX
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,919 ▲18414.02 ▼0.365.44 ▲3.5643.02 ▼0.79
Dashboard /wp-admin2,230 ▲395.91 ▲1.04103.89 ▼13.5381.02 ▲38.57
Posts /wp-admin/edit.php2,128 ▲392.11 ▲0.1135.96 ▼0.1334.88 ▲2.00
Add New Post /wp-admin/post-new.php1,561 ▲4223.16 ▼0.23781.82 ▲147.7354.98 ▼13.47
Media Library /wp-admin/upload.php1,415 ▲274.27 ▲0.07110.07 ▲15.0083.89 ▲43.75
RYBB /wp-admin/admin.php?page=rybb_api_endpoints8721.7125.1162.82
Settings /wp-admin/admin.php?page=rybb_api_settings8761.8925.3453.21
Walk Through /wp-admin/admin.php?page=rybb_api_walk_help8231.7524.6628.31

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Screenshots: Add images for these screenshots: #1 (General Information For "Remove Yellow BGBOX"), #2 (Settings Enable the wordpress Open Comment Links in New Window - target _blank set), #3 (Help / Walk Through (Overview - Remove Yellow BGBOX))
  • Tags: You are using too many tags: 13 tag instead of maximum 10
Please take inspiration from this readme.txt

remove-yellow-bgbox/remove-yellow-bgbox.php 92% from 13 tests

The primary PHP file in "Remove Yellow BGBOX" version 1.0 is used by WordPress to initiate all plugin functionality
It is important to 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

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected11,006 lines of code in 55 files:
LanguageFilesBlank linesComment linesLines of code
CSS432223,746
SVG1002,671
Sass1434341,768
LESS1434441,758
JavaScript222863634
PHP2011582429

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity1.83
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.24
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods21
▷ Static methods29.52%
▷ Public methods1780.95%
▷ Protected methods00.00%
▷ Private methods419.05%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
5 PNG files occupy 0.08MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/img/menu_icon.png0.70KB0.58KB▼ 17.34%
admin/img/remove-yellow-bgbox.png37.52KB14.80KB▼ 60.55%
admin/img/rybb.png0.93KB0.89KB▼ 3.99%
admin/img/geometry2.png2.09KB2.44KB0.00%
admin/img/remove-yellow-bgbox-2.png36.09KB12.83KB▼ 64.43%