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.07MB] [CPU: ▼7.39ms] Passed 4 tests
An overview of server-side resources used by Ultimate Modal
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.06 | 38.84 ▼1.04 |
Dashboard /wp-admin | 3.42 ▲0.08 | 53.62 ▼0.98 |
Posts /wp-admin/edit.php | 3.54 ▲0.14 | 51.40 ▼5.90 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.07 | 91.82 ▼21.62 |
Media Library /wp-admin/upload.php | 3.35 ▲0.07 | 38.64 ▲1.70 |
Ultimate Modal /wp-admin/options-general.php?page=ultimate-modal | 3.29 | 32.71 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
can_compress_scripts |
ultimatemodal_settings |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Ultimate Modal
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.34 ▲0.10 | 1.75 ▼0.11 | 42.29 ▼4.09 |
Dashboard /wp-admin | 2,199 ▲22 | 5.66 ▲0.02 | 87.33 ▼0.51 | 39.37 ▼2.50 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.99 ▼0.02 | 34.59 ▼4.82 | 31.87 ▼4.64 |
Add New Post /wp-admin/post-new.php | 1,538 ▲12 | 18.07 ▼5.42 | 625.92 ▼87.72 | 62.79 ▼11.39 |
Media Library /wp-admin/upload.php | 1,401 ▲4 | 4.20 ▲0.07 | 96.76 ▼40.49 | 44.00 ▼4.77 |
Ultimate Modal /wp-admin/options-general.php?page=ultimate-modal | 1,426 | 4.00 | 63.08 | 43.64 |
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
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=ultimate-modal
- > User deprecated in wp-includes/functions.php+5737
Function wp_editor() was called with an argument that is deprecated since version 3.9.0! TinyMCE editor IDs cannot have brackets.
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
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ultimate-modal/ultimate-modal.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function status_header() in wp-content/plugins/ultimate-modal/uninstall.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
2 plugin tags: modal, popup
ultimate-modal/ultimate-modal.php Passed 13 tests
The principal PHP file in "Ultimate Modal" v. 1.4.2 is loaded by WordPress automatically on each request
42 characters long description:
Displays a modal content in your WordPress
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin375 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 96 | 151 | 307 |
PO File | 1 | 23 | 54 | 65 |
JavaScript | 2 | 0 | 0 | 2 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing 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 code | 0.34 |
Average class complexity | 31.00 |
▷ Minimum class complexity | 31.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 2.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 18 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 15 | 83.33% |
▷ Protected methods | 2 | 11.11% |
▷ Private methods | 1 | 5.56% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/close.png | 0.61KB | 0.61KB | 0.00% |