94% ab-post-to-email

Code Review | AB Post To Email

WordPress plugin AB Post To Email scored 94% 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: 5.9.2
  • 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 / 734 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

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

Analyzing server-side resources used by AB Post To Email
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0255.28 ▲3.41
Dashboard /wp-admin3.42 ▲0.0133.14 ▼5.32
Posts /wp-admin/edit.php3.65 ▲0.0148.87 ▲9.01
Add New Post /wp-admin/post-new.php6.89 ▼0.0894.11 ▼1,309.50
Media Library /wp-admin/upload.php3.31 ▲0.0123.08 ▼3.07

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for AB Post To Email
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,771 ▲1615.97 ▲0.026.32 ▼0.322.25 ▲0.08
Dashboard /wp-admin2,878 ▲236.16 ▼0.04126.59 ▼7.39155.94 ▼0.91
Posts /wp-admin/edit.php2,694 ▲93.24 ▲0.0164.58 ▼6.42141.22 ▲1.89
Add New Post /wp-admin/post-new.php1,661 ▼9116.01 ▼5.40443.33 ▼11.02160.37 ▲1.24
Media Library /wp-admin/upload.php1,698 ▲35.50 ▼0.03143.25 ▲6.12186.73 ▼4.44

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
  • 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 | 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

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: email, notification, subscriber, new post

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

The main PHP file in "AB Post To Email" ver. 1.10 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: 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 | 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 plugin461 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
HTML13214429
PHP19932

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
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

All PNG images should be compressed to minimize bandwidth usage for end users
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%