Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.14MB] [CPU: ▼139.56ms] Passed 4 tests
An overview of server-side resources used by Stylistic Modals - Create Beautiful Popups with the Gutenberg Editor
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.94 ▲0.23 | 50.05 ▲24.61 |
Dashboard /wp-admin | 3.17 ▲0.11 | 54.06 ▼1.75 |
Posts /wp-admin/edit.php | 3.26 ▲0.15 | 45.41 ▼0.36 |
Add New Post /wp-admin/post-new.php | 5.61 ▲0.18 | 104.84 ▼554.99 |
Media Library /wp-admin/upload.php | 3.11 ▲0.11 | 40.11 ▼1.12 |
Add New /wp-admin/post-new.php?post_type=stylisticmodal | 5.60 | 96.69 |
All Stylistic Modals /wp-admin/edit.php?post_type=stylisticmodal | 3.16 | 40.78 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 19 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Stylistic Modals - Create Beautiful Popups with the Gutenberg Editor
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,883 ▲311 | 16.36 ▲0.68 | 18.47 ▲7.16 | 51.89 ▼3.99 |
Dashboard /wp-admin | 3,029 ▲98 | 6.01 ▲0.03 | 160.25 ▼1.22 | 121.48 ▼4.14 |
Posts /wp-admin/edit.php | 2,801 ▲62 | 2.76 ▲0.05 | 77.66 ▼12.57 | 98.48 ▼1.74 |
Add New Post /wp-admin/post-new.php | 1,661 ▲80 | 13.77 ▼2.61 | 329.19 ▼137.97 | 113.18 ▼7.19 |
Media Library /wp-admin/upload.php | 1,869 ▲62 | 5.10 ▲0.06 | 162.40 ▼24.96 | 135.34 ▲8.39 |
Add New /wp-admin/post-new.php?post_type=stylisticmodal | 6,257 | 19.86 | 580.61 | 150.96 |
All Stylistic Modals /wp-admin/edit.php?post_type=stylisticmodal | 1,468 | 2.67 | 78.17 | 81.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 0% 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
The following issues need your attention
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/stylistic-modals/stylistic-modals.php
- 7× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/stylistic-modals/inc/files.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/stylistic-modals/admin/metaboxes.php:106
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/stylistic-modals/admin/post-type.php:59
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/stylistic-modals/admin/customizations.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/stylistic-modals/inc/output.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/stylistic-modals/admin/settings.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/stylistic-modals/admin/post-type.php:59
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
- > GET request to /wp-admin/edit.php?post_type=stylisticmodal
- > Intervention (severe) in unknown
/wp-admin/post-new.php?post_type=stylisticmodal - Blocked attempt to show a 'beforeunload' confirmation panel for a frame that never had a user gesture since its load. https://www.chromestatus.com/feature/5082396709879808
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Tags: You are using too many tags: 13 tag instead of maximum 10
stylistic-modals/stylistic-modals.php Passed 13 tests
"Stylistic Modals - Create Beautiful Popups with the Gutenberg Editor" version 1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
106 characters long description:
Create easily beautiful popups in your individual design and write your content with the Gutenberg Editor.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin898 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 47 | 18 | 687 |
Sass | 2 | 28 | 0 | 100 |
CSS | 3 | 3 | 16 | 86 |
JavaScript | 3 | 3 | 6 | 25 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 13.50 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 3.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.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 | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.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
PNG images were not found in this plugin