Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.62MB] [CPU: ▼3.55ms] 75% from 4 tests
Analyzing server-side resources used by CM Email Registration Blacklist
Please have a look at the following items
- CPU: Try to keep total CPU usage under 500.00ms (currently 1,061.68ms on /wp-admin/admin.php?page=cmeb_menu)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.12 ▲0.66 | 47.10 ▲1.64 |
Dashboard /wp-admin | 3.97 ▲0.62 | 57.99 ▼6.80 |
Posts /wp-admin/edit.php | 4.02 ▲0.66 | 55.18 ▼0.62 |
Add New Post /wp-admin/post-new.php | 6.49 ▲0.60 | 99.58 ▼7.83 |
Media Library /wp-admin/upload.php | 3.83 ▲0.60 | 39.76 ▲1.07 |
CM E-Mail Registration Blacklist /wp-admin/admin.php?page=cmeb_menu | 5.68 | 1,061.68 |
User Guide /wp-admin/admin.php?page=cmeb_about | 4.00 | 413.99 |
Upgrade ➤ /wp-admin/admin.php?page=cmeb_pro | 3.84 | 43.41 |
Server storage [IO: ▲0.95MB] [DB: ▲0.05MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 78 new files
Database: 3 new tables, 9 new options
New tables |
---|
wp_cmeb_email_list |
wp_cmeb_free_domains |
wp_cmeb_userlist |
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
last_free_domain_list_update |
can_compress_scripts |
widget_theysaidso_widget |
cmeb_free_domains_ver |
cmeb_user_list_ver |
widget_recent-posts |
Browser metrics Passed 4 tests
CM Email Registration Blacklist: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲59 | 14.26 ▼0.09 | 1.81 ▼0.34 | 44.13 ▲1.50 |
Dashboard /wp-admin | 2,229 ▲52 | 5.64 ▼0.04 | 93.85 ▼1.19 | 41.56 ▼1.84 |
Posts /wp-admin/edit.php | 2,131 ▲31 | 1.99 ▼0.04 | 34.07 ▼5.72 | 40.49 ▲2.24 |
Add New Post /wp-admin/post-new.php | 1,551 ▲24 | 23.10 ▼0.24 | 637.19 ▲27.29 | 66.57 ▲14.26 |
Media Library /wp-admin/upload.php | 1,428 ▲31 | 4.14 ▼0.04 | 101.84 ▲2.02 | 48.50 ▲5.08 |
CM E-Mail Registration Blacklist /wp-admin/admin.php?page=cmeb_menu | 9,322 | 6.39 | 98.03 | 224.87 |
User Guide /wp-admin/admin.php?page=cmeb_about | 3,994 | 15.68 | 372.95 | 184.91 |
Upgrade ➤ /wp-admin/admin.php?page=cmeb_pro | 1,751 | 2.19 | 39.78 | 69.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.05MB] 50% 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 tables were found after uninstall: 3 tables
- wp_cmeb_email_list
- wp_cmeb_userlist
- wp_cmeb_free_domains
- Zombie WordPress options were found after uninstall: 9 options
- widget_recent-comments
- theysaidso_admin_options
- cmeb_user_list_ver
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- last_free_domain_list_update
- widget_theysaidso_widget
- cmeb_free_domains_ver
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
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
Almost there! Just fix the following items
- 17× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Warning
include_once(): Failed opening 'CMEB_PATH/backend/classes/SettingsViewAbstract.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/cm-email-blacklist/backend/classes/SettingsView.php on line 2
- > PHP Warning
include_once(): Failed opening 'CMEB_PATH/lib/models/Validate.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/cm-email-blacklist/lib/CMEB.php on line 3
- > PHP Warning
include_once(CMEB_PATH/lib/models/Validate.php): failed to open stream: No such file or directory in wp-content/plugins/cm-email-blacklist/lib/CMEB.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/cm-email-blacklist/cm-email-blacklist.php:91
- > PHP Warning
include_once(CMEB_PATH/backend/classes/Settings.php): failed to open stream: No such file or directory in wp-content/plugins/cm-email-blacklist/lib/CMEB.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/cm-email-blacklist/package/cminds-plugin-config.php:3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/cm-email-blacklist/package/views/userguide_free.php:8
- > PHP Warning
Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/cm-email-blacklist/cm-email-blacklist.php on line 88
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/cm-email-blacklist/package/cminds-plugin-config.php:3
- > PHP Warning
Use of undefined constant CMEB_PATH - assumed 'CMEB_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/cm-email-blacklist/lib/CMEB.php on line 3
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
- > GET request to /wp-admin/admin.php?page=cmeb_menu
- > Network (severe)
wp-content/plugins/cm-email-blacklist/backend/assets/css/images/ui-bg_flat_75_ffffff_40x100.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=cmeb_menu
- > Network (severe)
wp-content/plugins/cm-email-blacklist/backend/assets/css/images/ui-bg_highlight-soft_75_cccccc_1x100.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=cmeb_menu
- > Network (severe)
wp-content/plugins/cm-email-blacklist/backend/assets/css/images/ui-bg_glass_65_ffffff_1x400.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=cmeb_menu
- > Network (severe)
wp-content/plugins/cm-email-blacklist/backend/assets/css/images/ui-bg_glass_75_e6e6e6_1x400.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=cmeb_about
- > Security (warning) in unknown
security - Error with Permissions-Policy header: Unrecognized feature: 'ambient-light-sensor'.
- > GET request to /wp-admin/admin.php?page=cmeb_about
- > Security (warning) in unknown
security - Error with Permissions-Policy header: Unrecognized feature: 'bluetooth'.
- > GET request to /wp-admin/admin.php?page=cmeb_about
- > Deprecation (warning) in unknown
https://static.xx.fbcdn.net/rsrc.php/v3/yT/r/JeAVSvamNTp.js?_nc_x=Ij3Wp8lg5Kz 275 Listener added for a synchronous 'DOMSubtreeModified' DOM Mutation Event. This event type is deprecated (https://w3c.github.io/uievents/#legacy-event-types) and work is underway to remove it from this browser. Usage of this event listener will cause performance issues today, and represents a risk of future incompatibility. Consider using MutationObserver instead.
- > GET request to /wp-admin/admin.php?page=cmeb_about
- > Console-api (severe) in unknown
https://static.xx.fbcdn.net/rsrc.php/v3/yT/r/JeAVSvamNTp.js?_nc_x=Ij3Wp8lg5Kz 60:573 "ErrorUtils caught an error:\n\nCannot listen to an undefined element. [Caught in: Tried to listen to element of type click]\n\nSubsequent non-fatal errors won't be logged; see https://fburl.com/debugjs."
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: spam, email, whitelist, blacklist, spamassassin
cm-email-blacklist/cm-email-blacklist.php Passed 13 tests
The main PHP script in "CM Email Registration Blacklist" version 1.4.5 is automatically included on every request by WordPress
62 characters long description:
Block users from certain domains from registering in your site
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
Success! There were no dangerous files found in this plugin6,518 lines of code in 37 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 30 | 835 | 426 | 5,703 |
CSS | 4 | 107 | 32 | 786 |
JavaScript | 3 | 0 | 1 | 29 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 44.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 254.00 |
Average method complexity | 3.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 38.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 1 | 11.11% |
▷ Concrete classes | 8 | 88.89% |
▷ Final classes | 0 | 0.00% |
Methods | 178 | |
▷ Static methods | 72 | 40.45% |
▷ Public methods | 150 | 84.27% |
▷ Protected methods | 28 | 15.73% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 61 | |
▷ Global constants | 11 | 18.03% |
▷ Class constants | 50 | 81.97% |
▷ Public constants | 50 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
37 PNG files occupy 0.53MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
package/css/images/ui-bg_glass_75_dadada_1x400.png | 0.26KB | 0.16KB | ▼ 38.93% |
package/css/images/ui-icons_888888_256x240.png | 6.83KB | 4.17KB | ▼ 38.92% |
package/views/no.png | 0.38KB | 0.44KB | 0.00% |
package/views/appointments_icon.png | 38.00KB | 9.44KB | ▼ 75.16% |
package/views/img/v1.png | 0.24KB | 0.23KB | ▼ 2.49% |