Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.67ms] Passed 4 tests
This is a short check of server-side resources used by One Click Modal
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 37.74 ▼8.34 |
Dashboard /wp-admin | 3.31 ▲0.01 | 44.74 ▼4.56 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.36 ▲3.30 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 97.54 ▼3.94 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.87 ▲2.15 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by One Click Modal
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.24 ▼1.14 | 1.64 ▼0.60 | 41.22 ▼0.49 |
Dashboard /wp-admin | 2,206 ▲18 | 4.84 ▼0.05 | 117.47 ▲2.92 | 41.83 ▼7.55 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.99 ▼0.02 | 36.43 ▼1.66 | 32.44 ▲1.34 |
Add New Post /wp-admin/post-new.php | 1,514 ▼28 | 17.77 ▼0.34 | 606.34 ▼30.70 | 54.41 ▼8.85 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.18 ▼0.04 | 96.55 ▼10.35 | 42.64 ▼2.41 |
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
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/one-click-modal/one-click-modal.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
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, elementor
one-click-modal/one-click-modal.php Passed 13 tests
"One Click Modal" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
103 characters long description:
Simple plugin that allows you to show any Elementor widget inside of a modal window. Requires Elementor
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin553 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 68 | 103 | 494 |
CSS | 2 | 0 | 0 | 39 |
JavaScript | 2 | 4 | 0 | 20 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 11.50 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 1 | 50.00% |
Methods | 15 | |
▷ Static methods | 1 | 6.67% |
▷ Public methods | 15 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 7 | 87.50% |
▷ Class constants | 1 | 12.50% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin