Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.24MB] [CPU: ▼5.05ms] Passed 4 tests
Analyzing server-side resources used by Modal Dialog
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 40.45 ▲3.15 |
Dashboard /wp-admin | 3.58 ▲0.23 | 45.82 ▼14.08 |
Posts /wp-admin/edit.php | 3.69 ▲0.33 | 46.45 ▼1.91 |
Add New Post /wp-admin/post-new.php | 6.18 ▲0.30 | 82.28 ▼7.35 |
Media Library /wp-admin/upload.php | 3.50 ▲0.27 | 40.71 ▲6.49 |
Configurations /wp-admin/admin.php?page=modal-dialog-configurations | 3.46 | 30.63 |
Modal Dialog /wp-admin/admin.php?page=modal-dialog | 3.46 | 31.22 |
FAQ /wp-admin/admin.php?page=modal-dialog-faq | 3.46 | 30.23 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 46 new files
Database: no new tables, 8 new options
New WordPress options |
---|
MD_General |
MD_PP1 |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Modal Dialog
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,981 ▲220 | 13.85 ▼0.68 | 11.58 ▲9.79 | 43.08 ▲1.38 |
Dashboard /wp-admin | 2,233 ▲52 | 5.59 ▼0.15 | 79.16 ▼19.87 | 71.74 ▲31.92 |
Posts /wp-admin/edit.php | 2,138 ▲35 | 2.00 ▲0.04 | 34.77 ▼7.64 | 32.88 ▼5.73 |
Add New Post /wp-admin/post-new.php | 6,457 ▲4,931 | 27.23 ▲3.67 | 952.86 ▲269.45 | 62.24 ▲2.55 |
Media Library /wp-admin/upload.php | 1,435 ▲35 | 4.15 ▲0.01 | 96.58 ▼3.29 | 70.07 ▲28.31 |
Configurations /wp-admin/admin.php?page=modal-dialog-configurations | 1,749 | 2.39 | 40.26 | 31.89 |
Modal Dialog /wp-admin/admin.php?page=modal-dialog | 1,094 | 2.22 | 35.34 | 29.71 |
FAQ /wp-admin/admin.php?page=modal-dialog-faq | 1,028 | 2.07 | 36.30 | 32.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie WordPress options detected upon uninstall: 8 options
- MD_General
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- MD_PP1
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=modal-dialog-faq
- > Notice in wp-content/plugins/modal-dialog/modal-dialog-admin.php+333
Undefined property: modal_dialog_plugin_admin::$pagehook
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
require_once(ABSPATH/wp-admin/includes/template.php): failed to open stream: No such file or directory in wp-content/plugins/modal-dialog/modal-dialog.php on line 28
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/modal-dialog/modal-dialog.php on line 28
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATH/wp-admin/includes/template.php' (include_path='.:/usr/share/php') in wp-content/plugins/modal-dialog/modal-dialog.php on line 28
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: dialog, window, modal, multiple, pop-up
modal-dialog/modal-dialog.php Passed 13 tests
The principal PHP file in "Modal Dialog" v. 3.5.15 is loaded by WordPress automatically on each request
109 characters long description:
A plugin used to display a modal dialog to visitors with text content or the contents of an external web site
Code Analysis 97% from 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 plugin2,834 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 284 | 47 | 1,623 |
JavaScript | 6 | 298 | 105 | 873 |
CSS | 2 | 56 | 34 | 338 |
PHP code 50% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
It is recommended to fix the following
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 142)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 148.00 |
▷ Minimum class complexity | 85.00 |
▷ Maximum class complexity | 211.00 |
Average method complexity | 10.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 142.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 31 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
31 compressed PNG files occupy 0.06MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
fancybox/fancy_shadow_s.png | 0.11KB | 0.19KB | 0.00% |
fancybox/fancy_title_main.png | 0.09KB | 0.14KB | 0.00% |
fancybox/fancy_nav_right.png | 1.42KB | 1.66KB | 0.00% |
fancybox/fancy_closebox.png | 1.87KB | 1.74KB | ▼ 6.60% |
colorbox/images/controls.png | 2.83KB | 1.28KB | ▼ 54.82% |