Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
- Install procedure had errors
- > Warning in wp-content/plugins/signups/public/class-public.php+503
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?
Server metrics [RAM: ▼1.69MB] [CPU: ▼51.11ms] Passed 4 tests
Server-side resources used by Signups
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.30 ▼1.17 | 9.90 ▼31.45 |
Dashboard /wp-admin | 2.32 ▼0.99 | 8.05 ▼46.70 |
Posts /wp-admin/edit.php | 2.32 ▼1.04 | 10.14 ▼40.27 |
Add New Post /wp-admin/post-new.php | 2.32 ▼3.57 | 8.09 ▼86.03 |
Media Library /wp-admin/upload.php | 2.32 ▼0.91 | 7.42 ▼30.09 |
Settings /wp-admin/admin.php?page=wp_signups_settings | 2.32 | 7.15 |
All Clipboards /wp-admin/edit.php?post_type=wp_signups_clipboard | 2.32 | 8.59 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
wp_signups_settings |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Signups
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,855 ▲84 | 13.62 ▼0.56 | 1.84 ▼0.23 | 40.75 ▼3.21 |
Dashboard /wp-admin | 2,227 ▲39 | 5.80 ▼0.08 | 100.65 ▼14.63 | 38.84 ▼3.83 |
Posts /wp-admin/edit.php | 2,113 ▲27 | 2.01 ▲0.02 | 40.08 ▲2.49 | 34.80 ▲0.42 |
Add New Post /wp-admin/post-new.php | 1,537 ▲4 | 17.76 ▼5.38 | 673.26 ▼29.87 | 57.11 ▲7.33 |
Media Library /wp-admin/upload.php | 1,409 ▲18 | 4.22 ▲0.07 | 97.76 ▼7.69 | 44.56 ▲0.37 |
Settings /wp-admin/admin.php?page=wp_signups_settings | 822 | 2.06 | 24.71 | 26.18 |
All Clipboards /wp-admin/edit.php?post_type=wp_signups_clipboard | 1,083 | 2.35 | 34.53 | 25.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > Warning in wp-content/plugins/signups/public/class-public.php+503
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?
- Zombie WordPress options were found after uninstall: 7 options
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- wp_signups_settings
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
Smoke tests 25% 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
- 3 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=wp_signups_clipboard
- > POST request to /wp-admin/admin-ajax.php
- > Warning in wp-content/plugins/signups/public/class-public.php+503
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?
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
Please take a closer look at the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/signups/public/class-public.php on line 503
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
- > GET request to /wp-admin/edit.php?post_type=wp_signups_clipboard
- > Javascript (severe) in unknown
/wp-content/plugins/signups/admin/js/wp-signups-admin.js?ver=1.0.0 49:30 Uncaught TypeError: Cannot read properties of undefined (reading 'substr')
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 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
10 plugin tags: sign up, volunteer, signup, signup sheet, pto...
signups/wp-signups.php 85% from 13 tests
The principal PHP file in "Signups" v. 1.0.2 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("signups.php" instead of "wp-signups.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected1,879 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 343 | 738 | 1,073 |
CSS | 4 | 87 | 171 | 767 |
JavaScript | 2 | 15 | 50 | 39 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 19.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 56.00 |
Average method complexity | 3.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 62 | |
▷ Static methods | 5 | 8.06% |
▷ Public methods | 57 | 91.94% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 8.06% |
Functions | 2 | |
▷ Named functions | 2 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin