Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼6.11ms] Passed 4 tests
Analyzing server-side resources used by Geek Mail Whitelist
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 44.06 ▲1.05 |
Dashboard /wp-admin | 3.35 ▲0.05 | 49.89 ▼6.97 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 50.00 ▼0.95 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 87.69 ▼15.98 |
Media Library /wp-admin/upload.php | 3.28 ▲0.04 | 39.02 ▼0.52 |
Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 8 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_gmw_whitelist |
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
gmw-enabled |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Geek Mail Whitelist
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲44 | 14.28 ▼0.07 | 1.66 ▼0.18 | 41.20 ▼1.27 |
Dashboard /wp-admin | 2,214 ▲43 | 5.57 ▼0.03 | 90.82 ▼5.52 | 39.46 ▼0.69 |
Posts /wp-admin/edit.php | 2,116 ▲19 | 2.02 ▼0.00 | 37.73 ▲1.90 | 33.57 ▼2.30 |
Add New Post /wp-admin/post-new.php | 1,544 ▲13 | 23.16 ▼0.06 | 676.47 ▼8.46 | 56.13 ▼1.15 |
Media Library /wp-admin/upload.php | 1,413 ▲16 | 4.19 ▼0.02 | 107.11 ▲0.68 | 54.14 ▲8.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: email whitelist, email, spam, registration
geek-mail-whitelist/geek-mail-whitelist.php Passed 13 tests
Analyzing the main PHP file in "Geek Mail Whitelist" version 1.0.0
43 characters long description:
Allow users with certain emails to register
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
Everything looks great! No dangerous files found in this plugin459 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 97 | 25 | 413 |
SVG | 1 | 0 | 1 | 46 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 15.50 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 17 | |
▷ Static methods | 17 | 100.00% |
▷ Public methods | 17 | 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 | 7 | |
▷ Global constants | 7 | 100.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
1 PNG file occupies 0.21MB with 0.15MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 218.14KB | 64.51KB | ▼ 70.43% |