89% zedna-pending-post-indicator-and-notifier

Code Review | Zedna pending post indicator and notifier

WordPress plugin Zedna pending post indicator and notifier scored89%from 54 tests.

About plugin

  • Plugin page: zedna-pending-pos...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.4-5.4
  • WordPress version: 6.3.1
  • First release: Sep 6, 2019
  • Latest release: Mar 10, 2020
  • Number of updates: 3
  • Update frequency: every 61.7 days
  • Top authors: zedna (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /513 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▲0.40ms] Passed 4 tests

A check of server-side resources used by Zedna pending post indicator and notifier
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0444.45 ▲2.38
Dashboard /wp-admin3.36 ▲0.0154.06 ▼9.39
Posts /wp-admin/edit.php3.41 ▲0.0556.69 ▲3.86
Add New Post /wp-admin/post-new.php5.94 ▲0.05104.70 ▲6.34
Media Library /wp-admin/upload.php3.28 ▲0.0543.24 ▲4.75
Pending post indicator and notifier /wp-admin/options-general.php?page=status_notifier3.2538.53

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 9 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
notificationemails
widget_recent-comments
declinednotification
db_upgraded
widget_recent-posts
approvednotification
widget_theysaidso_widget

Browser metrics Passed 4 tests

Zedna pending post indicator and notifier: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4414.19 ▼0.081.66 ▼0.2346.83 ▲4.91
Dashboard /wp-admin2,211 ▲375.64 ▲0.0584.68 ▼8.2836.09 ▼4.72
Posts /wp-admin/edit.php2,116 ▲161.98 ▼0.0534.63 ▼4.7837.29 ▲5.33
Add New Post /wp-admin/post-new.php1,541 ▲1323.64 ▲0.51715.44 ▲50.9074.70 ▲25.43
Media Library /wp-admin/upload.php1,416 ▲194.18 ▼0.0195.54 ▼26.0141.79 ▼8.81
Pending post indicator and notifier /wp-admin/options-general.php?page=status_notifier8751.9724.7934.60

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
  • Zombie WordPress options were found after uninstall: 9 options
    • widget_recent-posts
    • declinednotification
    • widget_theysaidso_widget
    • notificationemails
    • approvednotification
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded

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
Even though everything seems fine, this is not an exhaustive test

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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: pending, status, notification, approval, notify...

zedna-pending-post-indicator-and-notifier/zedna-pending-post-inidicator-and-notifier.php 77% from 13 tests

"Zedna pending post indicator and notifier" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Description: Keep the plugin description shorter than 140 characters (currently 177 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("zedna-pending-post-indicator-and-notifier.php" instead of "zedna-pending-post-inidicator-and-notifier.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
Success! There were no dangerous files found in this plugin217 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP11824131
PO File1262886

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.40
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%
Functions5
▷ Named functions5100.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
No PNG files were detected