Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.12MB] [CPU: ▼138.03ms] Passed 4 tests
Analyzing server-side resources used by WP SquirrelMail
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 33.44 ▲10.31 |
Dashboard /wp-admin | 3.23 ▲0.17 | 43.46 ▼3.32 |
Posts /wp-admin/edit.php | 3.28 ▲0.17 | 47.63 ▲8.58 |
Add New Post /wp-admin/post-new.php | 5.52 ▲0.09 | 91.90 ▼559.80 |
Media Library /wp-admin/upload.php | 3.11 ▲0.11 | 35.82 ▲2.43 |
WP SquirrelMail /wp-admin/options-general.php?page=wpsquirrelmail-admin | 3.08 | 29.69 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for WP SquirrelMail
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,702 ▲106 | 15.97 ▲0.34 | 8.65 ▼0.38 | 45.48 ▼1.79 |
Dashboard /wp-admin | 2,996 ▲62 | 6.03 ▲0.10 | 133.54 ▼3.12 | 113.46 ▼0.87 |
Posts /wp-admin/edit.php | 2,763 ▲24 | 2.73 ▲0.01 | 67.80 ▲5.45 | 91.13 ▲4.75 |
Add New Post /wp-admin/post-new.php | 1,632 ▲17 | 21.78 ▲0.36 | 273.21 ▼7.20 | 102.22 ▼8.86 |
Media Library /wp-admin/upload.php | 1,831 ▲18 | 5.01 ▼0.01 | 153.24 ▲8.11 | 123.70 ▲2.00 |
WP SquirrelMail /wp-admin/options-general.php?page=wpsquirrelmail-admin | 1,162 | 2.21 | 60.16 | 75.49 |
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 successfully, without leaving any zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
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 take a closer look at the following
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/wp-squirrelmail/_inc/lib/pages/admin_settings.php:26
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-squirrelmail/wp-squirrelmail.php:31
- > PHP Fatal error
Uncaught Error: Class 'WP_Squirrelmail_Settings' not found in wp-content/plugins/wp-squirrelmail/_inc/lib/classes/class-wp-squirrelmail-user.php:19
- > PHP Fatal error
Uncaught Error: Class 'WP_Squirrelmail_Settings' not found in wp-content/plugins/wp-squirrelmail/_inc/lib/classes/class-wp-squirrelmail-admin.php:24
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: squirrelmail, email, mail
wp-squirrelmail/wp-squirrelmail.php Passed 13 tests
Analyzing the main PHP file in "WP SquirrelMail" version 1.1
46 characters long description:
Connect to SquirrelMail from within WordPress.
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 plugin671 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 130 | 365 | 605 |
JavaScript | 2 | 18 | 54 | 65 |
CSS | 1 | 1 | 12 | 1 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 4.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 1.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 1 | 14.29% |
▷ Concrete classes | 6 | 85.71% |
▷ Final classes | 0 | 0.00% |
Methods | 65 | |
▷ Static methods | 2 | 3.08% |
▷ Public methods | 42 | 64.62% |
▷ Protected methods | 14 | 21.54% |
▷ Private methods | 9 | 13.85% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.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
No PNG images were found in this plugin