90% imagebox-block

Code Review | Imagebox For Wordpress Block Editor

WordPress plugin Imagebox For Wordpress Block Editor scored 90% from 54 tests.

About plugin

  • Plugin page: imagebox-block
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.8
  • WordPress version: 6.3.1
  • First release: Apr 3, 2020
  • Latest release: Aug 21, 2021
  • Number of updates: 6
  • Update frequency: every 84.2 days
  • Top authors: shaikhaezaz80 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 573 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▼0.26MB] [CPU: ▼12.46ms] Passed 4 tests

This is a short check of server-side resources used by Imagebox For Wordpress Block Editor
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.19 ▼2.31
Dashboard /wp-admin3.32 ▲0.0248.57 ▼1.98
Posts /wp-admin/edit.php3.37 ▲0.0246.01 ▼5.69
Add New Post /wp-admin/post-new.php4.82 ▼1.0750.67 ▼39.86
Media Library /wp-admin/upload.php3.24 ▲0.0234.88 ▲0.56

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Imagebox For Wordpress Block Editor
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲8114.43 ▲0.071.85 ▼0.0644.51 ▲1.44
Dashboard /wp-admin2,208 ▲204.88 ▼0.01107.80 ▼6.5143.55 ▼6.52
Posts /wp-admin/edit.php2,088 ▼12.01 ▼0.0135.08 ▼1.5030.86 ▼3.39
Add New Post /wp-admin/post-new.php6,420 ▲4,89220.43 ▲2.01958.99 ▲320.1156.08 ▲3.04
Media Library /wp-admin/upload.php1,387 ▼14.19 ▲0.0395.78 ▼12.3542.87 ▼5.36

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: These screenshots need descriptions #1, #2, #3, #4, #5, #6, #8 in imagebox-block/assets to your readme.txt
Please take inspiration from this readme.txt

imagebox-block/imagebox-block.php Passed 13 tests

The main file in "Imagebox For Wordpress Block Editor" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
86 characters long description:
A simple imagebox plugin for WordPress block editor(gutenberg) with 3 different styles

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin263 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
CSS283187
PHP384668
JavaScript2208

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.14
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG images were found in this plugin