84% emailcoauthoronpost

Code Review | Email CoAuthor On Post

WordPress plugin Email CoAuthor On Post scored84%from 54 tests.

About plugin

  • Plugin page: emailcoauthoronpost
  • Plugin version: 2.4.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.3.1
  • WordPress version: 6.3.1
  • First release: Oct 19, 2012
  • Latest release: Sep 7, 2023
  • Number of updates: 41
  • Update frequency: every 97.0 days
  • Top authors: mrdenny (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,470 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
Installer ran successfully

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

A check of server-side resources used by Email CoAuthor On Post
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0843.62 ▼2.65
Dashboard /wp-admin3.40 ▲0.0956.39 ▲4.14
Posts /wp-admin/edit.php3.51 ▲0.1547.29 ▼10.70
Add New Post /wp-admin/post-new.php5.53 ▼0.3676.60 ▼33.64
Media Library /wp-admin/upload.php3.32 ▲0.0938.40 ▲3.30
Email CoAuthor On Post /wp-admin/options-general.php?page=emailcoauthor3.2832.85

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
emailcoauthor_options
widget_recent-posts
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Email CoAuthor On Post
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,799 ▲1314.22 ▼0.141.75 ▼0.1144.97 ▲1.86
Dashboard /wp-admin2,205 ▲285.65 ▲0.0583.96 ▼9.4240.92 ▼1.91
Posts /wp-admin/edit.php2,110 ▲101.95 ▼0.0738.83 ▲3.9235.92 ▼0.11
Add New Post /wp-admin/post-new.php6,346 ▲4,82027.57 ▲4.48968.09 ▲271.4839.56 ▼15.13
Media Library /wp-admin/upload.php1,410 ▲164.18 ▲0.0296.40 ▼18.3044.27 ▼3.05
Email CoAuthor On Post /wp-admin/options-general.php?page=emailcoauthor8832.1623.1032.23

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • emailcoauthor_options
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/emailcoauthoronpost/EmailCoAuthorOnPost.php:463

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were 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
1 plugin tags: email

emailcoauthoronpost/EmailCoAuthorOnPost.php 92% from 13 tests

The primary PHP file in "Email CoAuthor On Post" version 2.4.2 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("emailcoauthoronpost.php" instead of "EmailCoAuthorOnPost.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
No dangerous file extensions were detected356 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP18728356

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity56.00
▷ Minimum class complexity56.00
▷ Maximum class complexity56.00
Average method complexity3.39
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods23
▷ Static methods00.00%
▷ Public methods23100.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

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin