84% wp-switch-admin-email-verification-off

Code Review | WP Switch Admin Email Verification Off

WordPress plugin WP Switch Admin Email Verification Off scored84%from 54 tests.

About plugin

  • Plugin page: wp-switch-admin-e...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.3-6.0
  • WordPress version: 6.3.1
  • First release: Jun 28, 2022
  • Latest release: Jun 28, 2022
  • Number of updates: 2
  • Update frequency: every 478.0 days
  • Top authors: arjanolsder (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /712 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.80ms] Passed 4 tests

An overview of server-side resources used by WP Switch Admin Email Verification Off
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.35 ▼8.51
Dashboard /wp-admin3.31 ▲0.0048.96 ▼10.69
Posts /wp-admin/edit.php3.36 ▲0.0051.88 ▼7.67
Add New Post /wp-admin/post-new.php5.89 ▲0.00100.57 ▲5.43
Media Library /wp-admin/upload.php3.24 ▲0.0037.76 ▼0.31

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by WP Switch Admin Email Verification Off
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.72 ▲0.461.98 ▼0.5344.22 ▼10.12
Dashboard /wp-admin2,195 ▲215.60 ▼0.0592.72 ▼27.8841.45 ▼15.49
Posts /wp-admin/edit.php2,100 ▼02.04 ▲0.0040.69 ▼6.2035.16 ▲0.18
Add New Post /wp-admin/post-new.php1,545 ▲1423.22 ▲0.11648.03 ▼27.7450.15 ▼10.56
Media Library /wp-admin/upload.php1,400 ▼34.40 ▲0.20100.99 ▲0.2144.92 ▲0.30

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Please take a closer look at the following
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-switch-admin-email-verification-off/wp-switch-admin-email-verification-off.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-switch-admin-email-verification-off/switch-admin-email-verification-off.php:11

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: core, wordpress, updates

wp-switch-admin-email-verification-off/wp-switch-admin-email-verification-off.php Passed 13 tests

Analyzing the main PHP file in "WP Switch Admin Email Verification Off" version 1.0
116 characters long description:
WP Switch Admin Email Verification off stops WordPress from asking about e-mail verification every six months or so.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected6 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2186

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin