89% wf-cpanel-email-accounts

Code Review | WebFacing™ - Email Accounts management for cPanel®

WordPress plugin WebFacing™ - Email Accounts management for cPanel® scored89%from 54 tests.

About plugin

  • Plugin page: wf-cpanel-email-a...
  • Plugin version: 5.2.6
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.3-6.4.1
  • WordPress version: 6.3.1
  • First release: Apr 21, 2021
  • Latest release: Nov 14, 2023
  • Number of updates: 319
  • Update frequency: every 2.9 days
  • Top authors: knutsp (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

100+ active /13,168 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲1.13MB] [CPU: ▼4.61ms] Passed 4 tests

Server-side resources used by WebFacing™ - Email Accounts management for cPanel®
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.90 ▲0.4448.64 ▲4.23
Dashboard /wp-admin4.67 ▲1.3356.66 ▼7.27
Posts /wp-admin/edit.php4.79 ▲1.4359.23 ▲12.63
Add New Post /wp-admin/post-new.php7.26 ▲1.3793.02 ▼28.02
Media Library /wp-admin/upload.php4.60 ▲1.3756.05 ▲21.96

Server storage [IO: ▲0.27MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
No storage issues were detected
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for WebFacing™ - Email Accounts management for cPanel®
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,813 ▲6614.60 ▲0.321.89 ▲0.1343.38 ▼0.65
Dashboard /wp-admin2,218 ▲375.55 ▼0.1798.05 ▼10.1746.50 ▲2.75
Posts /wp-admin/edit.php2,121 ▲212.14 ▲0.1336.43 ▼3.2636.32 ▲0.18
Add New Post /wp-admin/post-new.php6,217 ▲4,69118.77 ▼4.371,034.35 ▲307.8382.05 ▲23.06
Media Library /wp-admin/upload.php1,423 ▲234.18 ▲0.09115.05 ▲12.1754.58 ▲10.23

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: auto-reply, backup, membership, cpanel, email

wf-cpanel-email-accounts/index.php 85% from 13 tests

"WebFacing™ - Email Accounts management for cPanel®" version 5.2.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wf-cpanel-email-accounts.php" instead of "index.php")
  • Description: The description should be shorter than 140 characters (currently 218 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin5,769 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP178614425,745
JSON10015
JavaScript1019

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.56
Average class complexity71.64
▷ Minimum class complexity7.00
▷ Maximum class complexity204.00
Average method complexity4.83
▷ Minimum method complexity1.00
▷ Maximum method complexity46.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes14
▷ Abstract classes1071.43%
▷ Concrete classes428.57%
▷ Final classes00.00%
Methods151
▷ Static methods10871.52%
▷ Public methods12884.77%
▷ Protected methods53.31%
▷ Private methods1811.92%
Functions85
▷ Named functions2529.41%
▷ Anonymous functions6070.59%
Constants12
▷ Global constants216.67%
▷ Class constants1083.33%
▷ Public constants440.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin