Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼2.02ms] Passed 4 tests
Server-side resources used by Pro Modal
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 38.92 ▲1.86 |
Dashboard /wp-admin | 3.33 ▲0.02 | 45.60 ▲0.08 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 45.93 ▼0.77 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 92.00 ▼7.34 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 37.71 ▼0.06 |
Add New Modal /wp-admin/post-new.php?post_type=pro-modal | 3.39 | 58.24 |
All Modals /wp-admin/edit.php?post_type=pro-modal | 3.29 | 45.43 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Pro Modal
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲44 | 13.31 ▲0.05 | 2.40 ▲0.85 | 45.20 ▲6.39 |
Dashboard /wp-admin | 2,235 ▲29 | 5.86 ▲1.00 | 96.91 ▼11.12 | 73.07 ▲32.85 |
Posts /wp-admin/edit.php | 2,115 ▲26 | 1.99 ▼0.05 | 41.67 ▲1.52 | 40.75 ▲6.84 |
Add New Post /wp-admin/post-new.php | 1,537 ▲4 | 21.67 ▲0.30 | 882.29 ▲137.90 | 69.90 ▲19.91 |
Media Library /wp-admin/upload.php | 1,414 ▲26 | 4.10 ▼0.10 | 103.82 ▼6.41 | 74.00 ▲29.64 |
Add New Modal /wp-admin/post-new.php?post_type=pro-modal | 2,309 | 7.72 | 202.30 | 128.72 |
All Modals /wp-admin/edit.php?post_type=pro-modal | 1,076 | 1.99 | 37.05 | 37.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- 4 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=pro-modal
- > Warning in wp-content/plugins/pro-modal/pro-modal.php+60
in_array() expects parameter 2 to be array, string given
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pro-modal/pro-modal.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: wordpress add modal, wordpress modal create, modal create, wordpress modals
pro-modal/pro-modal.php Passed 13 tests
"Pro Modal" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
84 characters long description:
Create your pro modals, edit and publish! It's that easy! Easy, fast, modern, no ad!
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
Good job! No executable or dangerous file extensions detected397 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 22 | 3 | 213 |
PHP | 1 | 17 | 9 | 160 |
JavaScript | 1 | 2 | 0 | 24 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.65 |
Average class complexity | 41.00 |
▷ Minimum class complexity | 41.00 |
▷ Maximum class complexity | 41.00 |
Average method complexity | 6.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.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 | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 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 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/icon.png | 18.29KB | 1.12KB | ▼ 93.87% |