83% rewrite-email-address

Code Review | Rewrite Email Address

WordPress plugin Rewrite Email Address scored83%from 54 tests.

About plugin

  • Plugin page: rewrite-email-add...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.0.2
  • WordPress version: 6.3.1
  • First release: Sep 23, 2022
  • Latest release: Sep 23, 2022
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: rtahina (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /541 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼1.81ms] Passed 4 tests

A check of server-side resources used by Rewrite Email Address
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.77 ▲3.23
Dashboard /wp-admin3.32 ▲0.0146.66 ▼1.80
Posts /wp-admin/edit.php3.37 ▲0.0144.04 ▼6.05
Add New Post /wp-admin/post-new.php5.90 ▲0.0195.53 ▲2.10
Media Library /wp-admin/upload.php3.24 ▲0.0132.61 ▼1.49

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Rewrite Email Address
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.30 ▼1.071.90 ▲0.2946.85 ▲1.37
Dashboard /wp-admin2,206 ▲184.84 ▼1.06108.18 ▲2.8142.87 ▼2.81
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0439.92 ▲1.0634.69 ▲0.27
Add New Post /wp-admin/post-new.php1,533 ▼023.12 ▼0.19641.64 ▼61.2759.73 ▼13.45
Media Library /wp-admin/upload.php1,388 ▼34.19 ▼0.0096.93 ▼8.3242.63 ▼3.69

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/rewrite-email-address/rewrite-email-address.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Requires php: Version not formatted correctly
  • Donate link: Please fix this invalid URI: ""
You can take inspiration from this readme.txt

rewrite-email-address/rewrite-email-address.php 92% from 13 tests

Analyzing the main PHP file in "Rewrite Email Address" version 1.0.2
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 159 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 plugin69 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP2121431
JSON10020
Markdown212018

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity3.00
▷ Minimum method complexity3.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/banner-772x250.png19.39KB9.97KB▼ 48.60%
assets/icon-256x256.png4.55KB2.88KB▼ 36.77%
assets/banner-1544x500.png51.70KB25.01KB▼ 51.63%