Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.94MB] [CPU: ▼132.00ms] Passed 4 tests
Analyzing server-side resources used by Easy Modal
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.17 ▲0.46 | 43.36 ▲20.79 |
Dashboard /wp-admin | 4.21 ▲1.15 | 52.18 ▲9.70 |
Posts /wp-admin/edit.php | 4.26 ▲1.15 | 51.64 ▲8.95 |
Add New Post /wp-admin/post-new.php | 6.51 ▲1.07 | 107.85 ▼546.99 |
Media Library /wp-admin/upload.php | 4.09 ▲1.09 | 30.69 ▲0.36 |
Add Ons /wp-admin/admin.php?page=easy-modal-addons | 4.06 | 33.28 |
Theme /wp-admin/admin.php?page=easy-modal-themes | 4.10 | 42.99 |
Help /wp-admin/admin.php?page=easy-modal-help | 4.07 | 38.07 |
Settings /wp-admin/admin.php?page=easy-modal-settings | 4.07 | 36.71 |
Modals /wp-admin/admin.php?page=easy-modal | 4.08 | 37.65 |
Server storage [IO: ▲0.53MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 85 new files
Database: 4 new tables, no new options
New tables |
---|
wp_em_modal_metas |
wp_em_modals |
wp_em_theme_metas |
wp_em_themes |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Easy Modal
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,976 ▲380 | 16.63 ▲1.11 | 12.90 ▲3.11 | 45.88 ▼4.68 |
Dashboard /wp-admin | 3,095 ▲161 | 5.91 ▼0.02 | 136.30 ▼7.29 | 132.74 ▲17.15 |
Posts /wp-admin/edit.php | 2,885 ▲146 | 2.82 ▲0.13 | 65.96 ▲2.74 | 90.45 ▲6.33 |
Add New Post /wp-admin/post-new.php | 1,982 ▲482 | 19.07 ▲0.48 | 376.96 ▲10.34 | 114.16 ▲6.76 |
Media Library /wp-admin/upload.php | 1,877 ▲67 | 5.02 ▼0.02 | 132.90 ▼21.68 | 138.57 ▲18.08 |
Add Ons /wp-admin/admin.php?page=easy-modal-addons | 1,286 | 5.24 | 119.70 | 68.56 |
Theme /wp-admin/admin.php?page=easy-modal-themes | 6,377 | 9.09 | 290.62 | 145.24 |
Help /wp-admin/admin.php?page=easy-modal-help | 1,745 | 8.37 | 170.22 | 136.65 |
Settings /wp-admin/admin.php?page=easy-modal-settings | 1,856 | 8.15 | 170.57 | 96.95 |
Modals /wp-admin/admin.php?page=easy-modal | 1,868 | 8.94 | 181.64 | 132.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie tables were found after uninstall: 4 tables
- wp_em_modals
- wp_em_themes
- wp_em_theme_metas
- wp_em_modal_metas
Smoke tests 50% from 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 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 43× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'EModal_Model' not found in wp-content/plugins/easy-modal/classes/model/modal/meta.php:1
- > PHP Fatal error
Uncaught Error: Class 'EModal_Model' not found in wp-content/plugins/easy-modal/classes/model/modal.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/easy-modal/classes/admin.php:261
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-modal/includes/admin/content.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/easy-modal/includes/admin/help-general-tab.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/easy-modal/includes/admin/settings-form-licenses-tab.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/easy-modal/includes/admin/options.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/easy-modal/easy-modal.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/easy-modal/includes/admin/modal-form-example-tab.php:2
- > PHP Fatal error
Uncaught Error: Class 'EModal_Model' not found in wp-content/plugins/easy-modal/classes/model/theme/meta.php:1
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
- > GET request to /wp-admin/admin.php?page=easy-modal-themes
- > Network (severe)
https://apis.google.com/u/0/se/0/_/+1/fastbutton?usegapi=1&size=tall&origin=http%3A%2F%2Fwp.com&url=http%3A%2F%2Feasy-modal.com%2F&gsrc=3p&ic=1&jsh=m%3B%2F_%2Fscs%2Fapps-static%2F_%2Fjs%2Fk%3Doz.gapi.en_US.7Qaqnm_1sO0.O%2Fam%3DAQ%2Fd%3D1%2Frs%3DAGLTcCMlhJgy_5nQ_Wt0jHMAZa6UDzBuWQ%2Fm%3D__features__#_methods=onPlusOne%2C_ready%2C_close%2C_open%2C_resizeMe%2C_renderstart%2Concircled%2Cdrefresh%2Cerefresh%2Conload&id=I0_1637236399449&_gfid=I0_1637236399449&parent=http%3A%2F%2Fwp.com&pfname=&rpctoken=27473723 - Failed to load resource: the server responded with a status of 404 ()
- > GET request to /wp-admin/admin.php?page=easy-modal-help
- > Network (severe)
https://apis.google.com/u/0/se/0/_/+1/fastbutton?usegapi=1&size=tall&origin=http%3A%2F%2Fwp.com&url=http%3A%2F%2Feasy-modal.com%2F&gsrc=3p&ic=1&jsh=m%3B%2F_%2Fscs%2Fapps-static%2F_%2Fjs%2Fk%3Doz.gapi.en_US.7Qaqnm_1sO0.O%2Fam%3DAQ%2Fd%3D1%2Frs%3DAGLTcCMlhJgy_5nQ_Wt0jHMAZa6UDzBuWQ%2Fm%3D__features__#_methods=onPlusOne%2C_ready%2C_close%2C_open%2C_resizeMe%2C_renderstart%2Concircled%2Cdrefresh%2Cerefresh%2Conload&id=I0_1637236405787&_gfid=I0_1637236405787&parent=http%3A%2F%2Fwp.com&pfname=&rpctoken=35221670 - Failed to load resource: the server responded with a status of 404 ()
- > GET request to /wp-admin/admin.php?page=easy-modal-settings
- > Network (severe)
https://apis.google.com/u/0/se/0/_/+1/fastbutton?usegapi=1&size=tall&origin=http%3A%2F%2Fwp.com&url=http%3A%2F%2Feasy-modal.com%2F&gsrc=3p&ic=1&jsh=m%3B%2F_%2Fscs%2Fapps-static%2F_%2Fjs%2Fk%3Doz.gapi.en_US.7Qaqnm_1sO0.O%2Fam%3DAQ%2Fd%3D1%2Frs%3DAGLTcCMlhJgy_5nQ_Wt0jHMAZa6UDzBuWQ%2Fm%3D__features__#_methods=onPlusOne%2C_ready%2C_close%2C_open%2C_resizeMe%2C_renderstart%2Concircled%2Cdrefresh%2Cerefresh%2Conload&id=I0_1637236407804&_gfid=I0_1637236407804&parent=http%3A%2F%2Fwp.com&pfname=&rpctoken=27410452 - Failed to load resource: the server responded with a status of 404 ()
- > GET request to /wp-admin/admin.php?page=easy-modal
- > Network (severe)
https://apis.google.com/u/0/se/0/_/+1/fastbutton?usegapi=1&size=tall&origin=http%3A%2F%2Fwp.com&url=http%3A%2F%2Feasy-modal.com%2F&gsrc=3p&ic=1&jsh=m%3B%2F_%2Fscs%2Fapps-static%2F_%2Fjs%2Fk%3Doz.gapi.en_US.7Qaqnm_1sO0.O%2Fam%3DAQ%2Fd%3D1%2Frs%3DAGLTcCMlhJgy_5nQ_Wt0jHMAZa6UDzBuWQ%2Fm%3D__features__#_methods=onPlusOne%2C_ready%2C_close%2C_open%2C_resizeMe%2C_renderstart%2Concircled%2Cdrefresh%2Cerefresh%2Conload&id=I0_1637236409810&_gfid=I0_1637236409810&parent=http%3A%2F%2Fwp.com&pfname=&rpctoken=36590445 - Failed to load resource: the server responded with a status of 404 ()
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
10 plugin tags: lightbox, modal, popup box, popup form, popup...
easy-modal/easy-modal.php Passed 13 tests
The main file in "Easy Modal" v. 2.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
135 characters long description:
Easily create & style modals with any content. Theme editor to quickly style your modals. Add forms, social media boxes, videos & more.
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
Good job! No executable or dangerous file extensions detected8,752 lines of code in 69 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 57 | 576 | 752 | 5,729 |
JavaScript | 6 | 92 | 70 | 1,396 |
PO File | 3 | 576 | 888 | 1,213 |
CSS | 3 | 32 | 2 | 414 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 11.95 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 87.00 |
Average method complexity | 3.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 46.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 42 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 42 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 223 | |
▷ Static methods | 38 | 17.04% |
▷ Public methods | 209 | 93.72% |
▷ Protected methods | 7 | 3.14% |
▷ Private methods | 7 | 3.14% |
Functions | 120 | |
▷ Named functions | 120 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 9 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
8 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/admin/sidebar-forum-support.png | 1.63KB | 0.91KB | ▼ 44.18% |
assets/images/admin/sidebar-pro-support.png | 2.06KB | 1.23KB | ▼ 40.61% |
assets/images/admin/easy-modal-icon.png | 0.51KB | 0.43KB | ▼ 16.00% |
assets/images/admin/get-started-arrow.png | 0.92KB | 1.33KB | 0.00% |
assets/images/admin/icon-info-21x21.png | 0.41KB | 0.34KB | ▼ 18.20% |