90% modal-for-elementor

Code Review | PopBox For Elementor

WordPress plugin PopBox For Elementor scored90%from 54 tests.

About plugin

  • Plugin page: modal-for-elementor
  • Plugin version: 1.0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.9
  • WordPress version: 6.3.1
  • First release: Jun 10, 2017
  • Latest release: Feb 20, 2018
  • Number of updates: 20
  • Update frequency: every 12.8 days
  • Top authors: norewp (60%)LuisBeOnline (45%)

Code review

54 tests

User reviews

24 reviews

Install metrics

10,000+ active /186,837 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼3.32ms] Passed 4 tests

This is a short check of server-side resources used by PopBox For Elementor
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0949.31 ▲5.42
Dashboard /wp-admin3.39 ▲0.0467.76 ▲2.21
Posts /wp-admin/edit.php3.48 ▲0.1353.90 ▲1.76
Add New Post /wp-admin/post-new.php5.97 ▲0.0892.35 ▼22.65
Media Library /wp-admin/upload.php3.31 ▲0.0848.99 ▲12.81
All PopBoxes /wp-admin/edit.php?post_type=elementor-popup3.3446.84
Add New PopBox /wp-admin/post-new.php?post_type=elementor-popup3.4254.79

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by PopBox For Elementor
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,917 ▲15613.40 ▼1.0212.44 ▲10.0638.74 ▼6.17
Dashboard /wp-admin2,227 ▲475.66 ▲0.0386.08 ▼5.0042.01 ▼0.94
Posts /wp-admin/edit.php2,135 ▲322.12 ▲0.1237.38 ▼5.4635.30 ▼2.12
Add New Post /wp-admin/post-new.php1,562 ▲3623.22 ▲5.73748.05 ▲109.1465.75 ▲12.45
Media Library /wp-admin/upload.php1,438 ▲414.21 ▼0.03104.10 ▲5.9845.31 ▲0.64
All PopBoxes /wp-admin/edit.php?post_type=elementor-popup1,0961.9631.9234.79
Add New PopBox /wp-admin/post-new.php?post_type=elementor-popup2,1837.74166.2162.03

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

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
Even though no errors were found, this is by no means an exhaustive test

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: popbox, elementor, popup, modal

modal-for-elementor/modal-for-elementor.php Passed 13 tests

"PopBox For Elementor" version 1.0.7's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
84 characters long description:
Create content-rich popboxes for your site using the power of Elementor Page Builder

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
No dangerous file extensions were detected2,137 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP4169331,493
JavaScript310939383
CSS32318227
PO File1101034

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.13
Average class complexity7.33
▷ Minimum class complexity1.00
▷ Maximum class complexity12.00
Average method complexity1.83
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods23
▷ Static methods28.70%
▷ Public methods1252.17%
▷ Protected methods834.78%
▷ Private methods313.04%
Functions6
▷ Named functions583.33%
▷ Anonymous functions116.67%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin