94% wp-squirrelmail

Code Review | WP SquirrelMail

WordPress plugin WP SquirrelMail scored 94% from 54 tests.

About plugin

  • Plugin page: wp-squirrelmail
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.5.2
  • WordPress version: 5.8.1
  • First release: Apr 30, 2015
  • Latest release: May 16, 2016
  • Number of updates: 19
  • Update frequency: every 20.1 days
  • Top authors: edgarr41 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 2,994 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1233.44 ▲10.31
Dashboard /wp-admin3.23 ▲0.1743.46 ▼3.32
Posts /wp-admin/edit.php3.28 ▲0.1747.63 ▲8.58
Add New Post /wp-admin/post-new.php5.52 ▲0.0991.90 ▼559.80
Media Library /wp-admin/upload.php3.11 ▲0.1135.82 ▲2.43
WP SquirrelMail /wp-admin/options-general.php?page=wpsquirrelmail-admin3.0829.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,702 ▲10615.97 ▲0.348.65 ▼0.3845.48 ▼1.79
Dashboard /wp-admin2,996 ▲626.03 ▲0.10133.54 ▼3.12113.46 ▼0.87
Posts /wp-admin/edit.php2,763 ▲242.73 ▲0.0167.80 ▲5.4591.13 ▲4.75
Add New Post /wp-admin/post-new.php1,632 ▲1721.78 ▲0.36273.21 ▼7.20102.22 ▼8.86
Media Library /wp-admin/upload.php1,831 ▲185.01 ▼0.01153.24 ▲8.11123.70 ▲2.00
WP SquirrelMail /wp-admin/options-general.php?page=wpsquirrelmail-admin1,1622.2160.1675.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP10130365605
JavaScript2185465
CSS11121

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 code0.12
Average class complexity4.71
▷ Minimum class complexity1.00
▷ Maximum class complexity10.00
Average method complexity1.43
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes114.29%
▷ Concrete classes685.71%
▷ Final classes00.00%
Methods65
▷ Static methods23.08%
▷ Public methods4264.62%
▷ Protected methods1421.54%
▷ Private methods913.85%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.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