90% custom-recovery-mode-email

Code Review | Custom Recovery Mode Email

WordPress plugin Custom Recovery Mode Email scored90%from 54 tests.

About plugin

  • Plugin page: custom-recovery-m...
  • Plugin version: 1.0.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.3
  • WordPress version: 6.3.1
  • First release: Dec 26, 2019
  • Latest release: Sep 17, 2023
  • Number of updates: 84
  • Update frequency: every 16.2 days
  • Top authors: jairo.ochoa (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /1,106 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.01MB] [CPU: ▼9.29ms] Passed 4 tests

Analyzing server-side resources used by Custom Recovery Mode Email
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.50 ▼2.39
Dashboard /wp-admin3.31 ▼0.0348.72 ▼11.28
Posts /wp-admin/edit.php3.36 ▲0.0047.01 ▼3.01
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.03 ▼20.48
Media Library /wp-admin/upload.php3.23 ▲0.0042.24 ▲4.28
Recovery Mode Email /wp-admin/options-general.php?page=dm_rme_settings3.2029.24

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Custom Recovery Mode Email: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲3313.29 ▼1.011.65 ▼0.1740.19 ▼1.05
Dashboard /wp-admin2,225 ▲275.84 ▲0.9596.97 ▼8.7135.67 ▼7.39
Posts /wp-admin/edit.php2,104 ▲41.98 ▼0.0240.40 ▲3.9736.13 ▲1.99
Add New Post /wp-admin/post-new.php1,550 ▲1923.45 ▲0.30654.45 ▼2.8359.09 ▲1.49
Media Library /wp-admin/upload.php1,404 ▲104.13 ▼0.14112.78 ▲2.9849.34 ▲1.72
Recovery Mode Email /wp-admin/options-general.php?page=dm_rme_settings9292.0222.9848.30

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
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 96% from 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: fatal error, recovery mode email, recovery mode

custom-recovery-mode-email/dm-rme.php 92% from 13 tests

The main PHP file in "Custom Recovery Mode Email" ver. 1.0.4 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("custom-recovery-mode-email.php" instead of "dm-rme.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected264 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP59927264

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.79
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions763.64%
▷ Anonymous functions436.36%
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
PNG images were not found in this plugin