90% pending-submission-notifications

Code Review | Pending Submission Notifications

WordPress plugin Pending Submission Notifications scored90%from 54 tests.

About plugin

  • Plugin page: pending-submissio...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.9.4
  • WordPress version: 6.3.1
  • First release: May 20, 2014
  • Latest release: Feb 21, 2018
  • Number of updates: 16
  • Update frequency: every 85.8 days
  • Top authors: razvanh (100%)

Code review

54 tests

User reviews

12 reviews

Install metrics

4,000+ active /19,301 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

This is a short check of server-side resources used by Pending Submission Notifications
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0242.41 ▼2.35
Dashboard /wp-admin3.33 ▼0.0248.46 ▼17.95
Posts /wp-admin/edit.php3.38 ▲0.0249.24 ▼6.17
Add New Post /wp-admin/post-new.php5.91 ▲0.0295.87 ▲1.05
Media Library /wp-admin/upload.php3.25 ▲0.0240.03 ▲2.91
Pending Submission Notifications /wp-admin/options-general.php?page=pending-submissions-notifications-settings3.2234.05

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Pending Submission Notifications
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.34 ▼0.211.77 ▲0.2144.25 ▲0.69
Dashboard /wp-admin2,199 ▲195.62 ▼0.0687.32 ▼12.3243.20 ▼2.58
Posts /wp-admin/edit.php2,107 ▲72.03 ▼0.0239.03 ▲1.8833.47 ▼3.94
Add New Post /wp-admin/post-new.php1,531 ▲523.07 ▼0.05652.27 ▼30.3461.84 ▼1.55
Media Library /wp-admin/upload.php1,407 ▲104.18 ▲0.0396.32 ▼7.3341.94 ▼5.49
Pending Submission Notifications /wp-admin/options-general.php?page=pending-submissions-notifications-settings7992.0024.5527.66

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: pending submissions, submit for review, pending notification, email notification, notifications

pending-submission-notifications/pending-submission-notifications.php Passed 13 tests

The primary PHP file in "Pending Submission Notifications" version 1.2 is used by WordPress to initiate all plugin functionality
101 characters long description:
Send email notifications to the admin whenever a new article is submitted for review by a contributor

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin68 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2123568

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions8
▷ Named functions8100.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
There were not PNG files found in your plugin