84% ab-post-to-email

Code Review | AB Post To Email

WordPress plugin AB Post To Email scored 84% from 54 tests.

About plugin

  • Plugin page: ab-post-to-email
  • Plugin version: 1.10
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.95
  • WordPress version: 6.3.1
  • First release: Apr 23, 2018
  • Latest release: May 6, 2018
  • Number of updates: 3
  • Update frequency: every 4.3 days
  • Top authors: abjelosevic (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 965 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by AB Post To Email
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.43 ▼4.70
Dashboard /wp-admin3.31 ▲0.0144.10 ▼5.51
Posts /wp-admin/edit.php3.37 ▲0.0147.00 ▲2.66
Add New Post /wp-admin/post-new.php5.90 ▲0.0182.67 ▼6.70
Media Library /wp-admin/upload.php3.24 ▲0.0137.88 ▲1.96

Server storage [IO: ▲1.14MB] [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: 8 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for AB Post To Email
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.14 ▼1.261.67 ▼0.8240.46 ▼3.96
Dashboard /wp-admin2,209 ▲215.86 ▲0.9792.50 ▼21.7740.99 ▼13.19
Posts /wp-admin/edit.php2,086 ▼02.01 ▲0.0135.35 ▲1.3235.05 ▼1.98
Add New Post /wp-admin/post-new.php1,514 ▼017.69 ▲0.22683.86 ▼2.4557.66 ▼2.23
Media Library /wp-admin/upload.php1,391 ▼04.19 ▼0.0593.38 ▼10.6542.30 ▼8.16

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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 trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ab-post-to-email/ab-post-to-email-plugin.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: subscriber, notification, new post, email

ab-post-to-email/ab-post-to-email-plugin.php 92% from 13 tests

Analyzing the main PHP file in "AB Post To Email" version 1.10
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ab-post-to-email.php" instead of "ab-post-to-email-plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected461 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
HTML13214429
PHP19932

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.05
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.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
1 PNG file occupies 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
files/template_img/blank.png16.04KB0.11KB▼ 99.32%