78% updatemailer

Code Review | AY Update Mailer

WordPress plugin AY Update Mailer scored78%from 54 tests.

About plugin

  • Plugin page: updatemailer
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.4.2
  • WordPress version: 6.3.1
  • First release: Feb 9, 2016
  • Latest release: Feb 9, 2016
  • Number of updates: 8
  • Update frequency: N/A
  • Top authors: GastonPowered (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

Server metrics [RAM: ▲0.09MB] [CPU: ▼7.86ms] Passed 4 tests

Analyzing server-side resources used by AY Update Mailer
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1036.53 ▼3.69
Dashboard /wp-admin3.41 ▲0.0644.93 ▼9.68
Posts /wp-admin/edit.php3.52 ▲0.1651.68 ▲2.00
Add New Post /wp-admin/post-new.php5.99 ▲0.1093.14 ▼14.24
Media Library /wp-admin/upload.php3.33 ▲0.1033.60 ▼3.81
Update Mailer /wp-admin/options-general.php?page=updatemailer3.3031.12

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for AY Update Mailer
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.55 ▼1.091.72 ▼0.1840.37 ▼2.01
Dashboard /wp-admin2,207 ▲225.83 ▲0.0195.62 ▼6.5136.78 ▼5.51
Posts /wp-admin/edit.php2,093 ▲12.05 ▲0.0039.71 ▼1.6436.33 ▼0.16
Add New Post /wp-admin/post-new.php1,528 ▼023.50 ▲0.34681.27 ▲17.3557.38 ▲5.52
Media Library /wp-admin/upload.php1,395 ▲74.18 ▲0.0797.62 ▼17.9042.14 ▼6.58
Update Mailer /wp-admin/options-general.php?page=updatemailer9392.1522.5725.24

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 50% 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 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/updatemailer/ay-updatemailer.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/updatemailer/mail.php:46

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: maintenance, mail, update

updatemailer/ay-updatemailer.php 92% from 13 tests

The entry point to "AY Update Mailer" version 0.1 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("updatemailer.php" instead of "ay-updatemailer.php")

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 plugin690 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP3108100687
Markdown1203

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity60.00
▷ Minimum class complexity21.00
▷ Maximum class complexity99.00
Average method complexity7.85
▷ Minimum method complexity1.00
▷ Maximum method complexity30.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods1173.33%
▷ Protected methods00.00%
▷ Private methods426.67%
Functions3
▷ Named functions00.00%
▷ Anonymous functions3100.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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
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
logo-ayctor.png2.73KB1.67KB▼ 39.07%