89% scramble-email

Code Review | Scramble Email

WordPress plugin Scramble Email scored89%from 54 tests.

About plugin

  • Plugin page: scramble-email
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.9.4
  • WordPress version: 6.3.1
  • First release: Feb 23, 2018
  • Latest release: Feb 27, 2018
  • Number of updates: 11
  • Update frequency: every 2.6 days
  • Top authors: Kuuak (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /752 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼2.53ms] Passed 4 tests

An overview of server-side resources used by Scramble Email
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0639.02 ▼3.62
Dashboard /wp-admin3.37 ▲0.0752.73 ▼0.19
Posts /wp-admin/edit.php3.48 ▲0.1349.53 ▼3.18
Add New Post /wp-admin/post-new.php5.97 ▲0.08100.97 ▼3.13
Media Library /wp-admin/upload.php3.29 ▲0.0637.11 ▲2.61
Scramble Email /wp-admin/options-general.php?page=scem3.2632.14

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, 8 new options
New WordPress options
can_compress_scripts
db_upgraded
scem_zone
widget_theysaidso_widget
widget_recent-comments
scem_posttype
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Scramble Email
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲6013.23 ▼1.421.94 ▼0.2540.13 ▼5.93
Dashboard /wp-admin2,210 ▲224.87 ▼1.05114.39 ▲10.4042.13 ▲2.33
Posts /wp-admin/edit.php2,093 ▲42.04 ▲0.0239.61 ▼1.1934.46 ▼2.34
Add New Post /wp-admin/post-new.php1,538 ▲1823.56 ▲0.42638.46 ▲9.9452.56 ▼1.36
Media Library /wp-admin/upload.php1,395 ▲44.25 ▲0.0795.20 ▼11.3045.72 ▼1.41
Scramble Email /wp-admin/options-general.php?page=scem8002.0323.5629.84

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 8 options in the database
    • scem_zone
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • scem_posttype
    • can_compress_scripts
    • 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
Everything seems fine, however this is by no means 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 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention: The official readme.txt is a good inspiration

scramble-email/scramble-email.php 92% from 13 tests

The primary PHP file in "Scramble Email" version 1.2.1 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 147 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin489 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP587319261
CSS2140126
JavaScript34560102

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity7.33
▷ Minimum class complexity7.00
▷ Maximum class complexity8.00
Average method complexity1.70
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods27
▷ Static methods00.00%
▷ Public methods2281.48%
▷ Protected methods00.00%
▷ Private methods518.52%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/images/scramble-email-icon.png1.07KB0.81KB▼ 24.34%