84% bluecube-email-templates

Code Review | Blue Cube Email Templates

WordPress plugin Blue Cube Email Templates scored84%from 54 tests.

About plugin

  • Plugin page: bluecube-email-te...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.4.1
  • WordPress version: 6.3.1
  • First release: Feb 2, 2016
  • Latest release: Oct 11, 2016
  • Number of updates: 3
  • Update frequency: every 84.3 days
  • Top authors: thebluecube (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /957 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼8.93ms] Passed 4 tests

A check of server-side resources used by Blue Cube Email Templates
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0635.23 ▼5.34
Dashboard /wp-admin3.36 ▲0.0646.00 ▼6.44
Posts /wp-admin/edit.php3.41 ▲0.0545.21 ▼0.31
Add New Post /wp-admin/post-new.php5.95 ▲0.0683.30 ▼23.62
Media Library /wp-admin/upload.php3.29 ▲0.0535.20 ▲0.20
Add New Template /wp-admin/post-new.php?post_type=bc-email-template3.3948.80
Email Templates /wp-admin/edit.php?post_type=bc-email-template3.3337.44

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Blue Cube Email Templates
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,855 ▲8413.21 ▼1.041.90 ▲0.1037.31 ▼1.78
Dashboard /wp-admin2,233 ▲425.99 ▲0.0992.41 ▼7.7538.80 ▼2.04
Posts /wp-admin/edit.php2,116 ▲272.01 ▲0.0032.86 ▼1.2135.93 ▲0.89
Add New Post /wp-admin/post-new.php1,537 ▲417.74 ▼5.42694.47 ▲33.1251.61 ▲2.26
Media Library /wp-admin/upload.php1,418 ▲364.19 ▲0.0294.17 ▼3.8948.70 ▲3.98
Add New Template /wp-admin/post-new.php?post_type=bc-email-template2,2207.61174.3869.03
Email Templates /wp-admin/edit.php?post_type=bc-email-template1,0861.9529.7027.10

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 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
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function BlueCube\\add_action() in wp-content/plugins/bluecube-email-templates/class/Email_Template.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Donate link: Invalid URI found ("")
You can look at the official readme.txt

bluecube-email-templates/bluecube-email-templates.php Passed 13 tests

"Blue Cube Email Templates" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
108 characters long description:
This plugin adds an email template system to your website so you can use them for programmatic email sending

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin142 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP26725142

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity27.00
▷ Minimum class complexity27.00
▷ Maximum class complexity27.00
Average method complexity3.60
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods990.00%
▷ Protected methods110.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin