94% info-boxes-for-elementor

Code Review | Info boxes for elementor

WordPress plugin Info boxes for elementor scored 94% from 54 tests.

About plugin

  • Plugin page: info-boxes-for-el...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.2.4
  • WordPress version: 5.8.1
  • First release: Oct 29, 2019
  • Latest release: Oct 29, 2019
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: wpafroz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 459 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼172.26ms] Passed 4 tests

This is a short check of server-side resources used by Info boxes for elementor
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.0238.58 ▲3.81
Dashboard /wp-admin3.08 ▲0.0247.22 ▲3.69
Posts /wp-admin/edit.php3.13 ▲0.0249.54 ▲3.57
Add New Post /wp-admin/post-new.php5.43 ▼0.0093.85 ▼696.00
Media Library /wp-admin/upload.php3.02 ▲0.0233.94 ▼0.31

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Info boxes for elementor
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,725 ▲12915.89 ▲0.4110.03 ▼1.6453.21 ▼1.05
Dashboard /wp-admin2,995 ▲586.08 ▲0.07139.67 ▼21.57107.03 ▼10.60
Posts /wp-admin/edit.php2,762 ▲232.70 ▲0.0170.84 ▲0.6990.72 ▼6.05
Add New Post /wp-admin/post-new.php1,510 ▲1218.87 ▲0.03385.44 ▼5.53117.50 ▼3.15
Media Library /wp-admin/upload.php1,830 ▲235.01 ▼0.02164.57 ▲12.16132.64 ▲8.37

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Info_Boxes_For_Elementor\\add_action() in wp-content/plugins/info-boxes-for-elementor/plugin.php:115

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed: Please take inspiration from this readme.txt

info-boxes-for-elementor/info-boxes-for-elementor.php Passed 13 tests

The main file in "Info boxes for elementor" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
96 characters long description:
This is a short description of what the plugin does. It's displayed in the WordPress admin area.

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
There were no executable files found in this plugin822 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP6108178701
CSS1213114
JavaScript1227

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity4.40
▷ Minimum class complexity2.00
▷ Maximum class complexity7.00
Average method complexity1.57
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes120.00%
Methods30
▷ Static methods13.33%
▷ Public methods2376.67%
▷ Protected methods620.00%
▷ Private methods13.33%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/polygon.png0.88KB0.48KB▼ 45.28%