Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼3.69ms] Passed 4 tests
Analyzing server-side resources used by Simple Modal
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 55.00 ▲10.93 |
Dashboard /wp-admin | 3.44 ▲0.13 | 58.62 ▲4.64 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 58.70 ▲5.13 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 100.42 ▼35.44 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 49.93 ▲11.86 |
Add New /wp-admin/post-new.php?post_type=simplemodal | 3.47 | 52.53 |
Modals /wp-admin/edit.php?post_type=simplemodal | 3.39 | 49.91 |
Simple Modal /wp-admin/options-general.php?page=simplemodal--settings | 3.30 | 46.78 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Simple Modal: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,850 ▲50 | 13.59 ▼0.76 | 2.35 ▲0.40 | 42.44 ▼4.14 |
Dashboard /wp-admin | 2,237 ▲28 | 5.79 ▼0.09 | 104.63 ▼6.15 | 40.56 ▼6.66 |
Posts /wp-admin/edit.php | 2,123 ▲37 | 1.99 ▼0.02 | 38.34 ▲2.49 | 35.97 ▲1.82 |
Add New Post /wp-admin/post-new.php | 1,542 ▲9 | 17.58 ▼5.53 | 700.73 ▲20.98 | 55.86 ▼6.20 |
Media Library /wp-admin/upload.php | 1,419 ▲34 | 4.25 ▲0.03 | 95.66 ▼7.85 | 42.76 ▲1.35 |
Add New /wp-admin/post-new.php?post_type=simplemodal | 2,251 | 7.61 | 197.61 | 65.84 |
Modals /wp-admin/edit.php?post_type=simplemodal | 1,084 | 2.02 | 33.88 | 27.92 |
Simple Modal /wp-admin/options-general.php?page=simplemodal--settings | 904 | 2.06 | 29.69 | 27.71 |
Uninstaller [IO: ✅] [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
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/post-new.php?post_type=simplemodal
- > Notice in wp-content/plugins/simplemodal/classes/ui.php+39
Undefined variable: option_str
- > GET request to /wp-admin/post-new.php?post_type=simplemodal
- > Notice in wp-content/plugins/simplemodal/classes/ui.php+46
Undefined property: SimpleModalUI::$class
- 4 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=simplemodal--settings
- > Notice in wp-content/plugins/simplemodal/classes/ui.php+68
Undefined variable: field_class
SRP 0% 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
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/simplemodal/views/public-page-html.php
- 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/simplemodal/views/settings.php on line 4
- > PHP Fatal error
Uncaught Error: Call to a member function display() on null in wp-content/plugins/simplemodal/tinymce/modal-list.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/simplemodal/views/simplemodal_post_type/meta_box.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/simplemodal/functions.php:9
- > PHP Notice
Undefined variable: data in wp-content/plugins/simplemodal/views/settings.php on line 4
- > PHP Notice
Undefined variable: modals in wp-content/plugins/simplemodal/tinymce/modal-list.php on line 13
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/simplemodal/views/settings.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simplemodal/simple-modal.php:25
- > PHP Notice
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=simplemodal--settings
- > Network (severe)
wp-content/plugins/simple-modal/css/admin-general.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 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
These attributes need your attention:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== simplemodal ===
)
simplemodal/simple-modal.php 92% from 13 tests
The main PHP file in "Simple Modal" ver. 0.3.3 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("simplemodal.php" instead of "simple-modal.php")
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
There were no executable files found in this plugin723 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 129 | 74 | 435 |
CSS | 3 | 3 | 5 | 183 |
JavaScript | 2 | 22 | 1 | 105 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.11 |
Average class complexity | 4.17 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.66 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 20 | 68.97% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 31.03% |
Functions | 6 | |
▷ Named functions | 6 | 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
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
tinymce/icon.png | 3.77KB | 0.75KB | ▼ 80.19% |
icon-wp-admin-menu.png | 3.77KB | 0.75KB | ▼ 80.19% |