94% article-status-email-notifications

Code Review | Article Status Email Notifications

WordPress plugin Article Status Email Notifications scored 94% from 54 tests.

About plugin

  • Plugin page: article-status-em...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.7
  • WordPress version: 5.8.1
  • First release: May 17, 2017
  • Latest release: May 17, 2017
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: SparkleWorld (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 495 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼146.95ms] Passed 4 tests

This is a short check of server-side resources used by Article Status Email Notifications
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.0232.38 ▼3.82
Dashboard /wp-admin3.09 ▲0.0344.22 ▼1.02
Posts /wp-admin/edit.php3.14 ▲0.0344.04 ▲1.89
Add New Post /wp-admin/post-new.php5.44 ▲0.0182.42 ▼575.90
Media Library /wp-admin/upload.php3.03 ▲0.0331.76 ▼7.05
Article Status Email Notifications /wp-admin/options-general.php?page=article-status-email-notifications-settings3.0029.08

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Article Status Email Notifications
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,707 ▲11216.28 ▲0.7311.64 ▲2.1152.34 ▲5.57
Dashboard /wp-admin2,975 ▲415.84 ▼0.14136.75 ▼23.46103.27 ▼18.00
Posts /wp-admin/edit.php2,744 ▲52.72 ▲0.0161.92 ▼5.0992.59 ▲7.03
Add New Post /wp-admin/post-new.php1,503 ▼118.41 ▼0.11353.15 ▼9.45103.05 ▼5.18
Media Library /wp-admin/upload.php1,815 ▲85.01 ▼0.03146.70 ▼30.60119.24 ▼11.63
Article Status Email Notifications /wp-admin/options-general.php?page=article-status-email-notifications-settings1,0452.0952.7268.98

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 completely, with no 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 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× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/article-status-email-notifications/article-status-email-notifications.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

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
5 plugin tags: notifications, submit for review, email notification, pending notification, pending submissions

article-status-email-notifications/article-status-email-notifications.php 92% from 13 tests

This is the main PHP file of "Article Status Email Notifications" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 166 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected105 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11417105

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.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
There were not PNG files found in your plugin