89% email-posts-commentators

Code Review | Email Posts Commentators

WordPress plugin Email Posts Commentators scored89%from 54 tests.

About plugin

  • Plugin page: email-posts-comme...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.7
  • WordPress version: 6.3.1
  • First release: May 7, 2014
  • Latest release: Apr 26, 2015
  • Number of updates: 11
  • Update frequency: every 89.3 days
  • Top authors: ashfame (90.91%)deployer (18.18%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,289 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
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼6.35ms] Passed 4 tests

An overview of server-side resources used by Email Posts Commentators
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.44 ▼5.37
Dashboard /wp-admin3.34 ▲0.0348.93 ▼8.62
Posts /wp-admin/edit.php3.39 ▲0.0353.19 ▼1.56
Add New Post /wp-admin/post-new.php5.92 ▲0.03105.16 ▼9.83
Media Library /wp-admin/upload.php3.26 ▲0.0335.80 ▼1.14
Email Posts Commentators /wp-admin/tools.php?page=email-posts-commentators-page3.2838.06

Server storage [IO: ▲0.41MB] [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
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Email Posts Commentators: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.19 ▼0.161.80 ▼0.0844.56 ▲0.28
Dashboard /wp-admin2,199 ▲255.61 ▲0.0993.73 ▼11.8142.38 ▼2.89
Posts /wp-admin/edit.php2,107 ▲72.01 ▲0.0039.52 ▼0.9736.37 ▼2.12
Add New Post /wp-admin/post-new.php1,407 ▼13017.82 ▼0.49594.95 ▼100.3145.47 ▼21.04
Media Library /wp-admin/upload.php1,401 ▲104.16 ▼0.05101.98 ▲2.9143.75 ▲0.54
Email Posts Commentators /wp-admin/tools.php?page=email-posts-commentators-page1,3965.77125.9454.61

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

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

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Screenshots: Add an image for screenshot #2 (Email that goes out)
  • Plugin Name: Please specify the plugin name on the first line ( === email-posts-commentators === )
You can look at the official readme.txt

email-posts-commentators/email-posts-commentators.php Passed 13 tests

The primary PHP file in "Email Posts Commentators" version 0.1 is used by WordPress to initiate all plugin functionality
37 characters long description:
Plugin to email commentators of posts

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin1,677 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript19391,109
CSS11025400
PHP13420168

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity20.00
▷ Minimum class complexity20.00
▷ Maximum class complexity20.00
Average method complexity3.71
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.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

Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.34MB with 0.11MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
chosen/chosen-sprite@2x.png0.85KB0.83KB▼ 3.10%
screenshot-2.png160.62KB61.88KB▼ 61.47%
screenshot-1.png190.53KB65.84KB▼ 65.45%
chosen/chosen-sprite.png0.63KB0.88KB0.00%