84% email-post-approval

Code Review | Email Post Approval

WordPress plugin Email Post Approval scored84%from 54 tests.

About plugin

  • Plugin page: email-post-approval
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.7.3
  • WordPress version: 6.3.1
  • First release: Nov 9, 2012
  • Latest release: Apr 16, 2017
  • Number of updates: 12
  • Update frequency: every 134.8 days
  • Top authors: travislopes (83.33%)mcinvale (25%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /3,480 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼3.09ms] Passed 4 tests

An overview of server-side resources used by Email Post Approval
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0640.09 ▼1.80
Dashboard /wp-admin3.37 ▲0.0743.52 ▼4.67
Posts /wp-admin/edit.php3.42 ▲0.0746.20 ▼2.79
Add New Post /wp-admin/post-new.php5.95 ▲0.0790.78 ▼3.09
Media Library /wp-admin/upload.php3.29 ▲0.0735.44 ▲0.64
Email Post Approval /wp-admin/options-general.php?page=email-post-approval3.2637.50

Server storage [IO: ▲0.02MB] [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: 2 new files
Database: no new tables, 9 new options
New WordPress options
epa_post_statuses
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
epa_email_fields
epa_send_to
db_upgraded
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Email Post Approval
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5814.48 ▼0.061.75 ▲0.0345.45 ▲2.05
Dashboard /wp-admin2,210 ▲194.86 ▼0.16111.46 ▲2.6742.03 ▼4.97
Posts /wp-admin/edit.php2,093 ▲12.05 ▲0.0740.41 ▼8.1634.95 ▼5.46
Add New Post /wp-admin/post-new.php1,545 ▲2618.45 ▼4.78602.95 ▼58.3456.69 ▲4.22
Media Library /wp-admin/upload.php1,386 ▼24.23 ▲0.0597.59 ▼0.3543.34 ▼1.31
Email Post Approval /wp-admin/options-general.php?page=email-post-approval9472.0228.9227.64

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means 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
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 register_activation_hook() in wp-content/plugins/email-post-approval/email-post-approval.php:47

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: email, publishing, review, post approval

email-post-approval/email-post-approval.php Passed 13 tests

The main file in "Email Post Approval" v. 2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
61 characters long description:
Review and approve posts for publishing right from your inbox

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin323 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1193195323

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity52.00
▷ Minimum class complexity52.00
▷ Maximum class complexity52.00
Average method complexity3.58
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods323.08%
▷ Public methods1292.31%
▷ Protected methods00.00%
▷ Private methods17.69%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin