88% admin-post-notifier

Code Review | Admin Post Notifier

WordPress plugin Admin Post Notifier scored 88% from 54 tests.

About plugin

  • Plugin page: admin-post-notifier
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.4.13+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.6
  • WordPress version: 5.8.1
  • First release: Jan 7, 2021
  • Latest release: Jan 8, 2021
  • Number of updates: 3
  • Update frequency: every 1.0 days
  • Top authors: xwebyna (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 110 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.05MB] [CPU: ▼146.42ms] Passed 4 tests

A check of server-side resources used by Admin Post Notifier
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.89 ▲0.0647.14 ▲10.43
Dashboard /wp-admin3.11 ▲0.0652.05 ▼5.03
Posts /wp-admin/edit.php3.23 ▲0.1255.45 ▲0.40
Add New Post /wp-admin/post-new.php5.47 ▲0.04100.73 ▼579.81
Media Library /wp-admin/upload.php3.06 ▲0.0638.96 ▼1.23

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: 18 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Admin Post Notifier
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,713 ▲11715.81 ▲0.2414.77 ▲3.3049.50 ▼2.98
Dashboard /wp-admin2,967 ▲335.93 ▼0.11167.53 ▼6.35125.23 ▲0.59
Posts /wp-admin/edit.php2,739 ▼02.72 ▼0.0075.04 ▲1.7599.20 ▼2.41
Add New Post /wp-admin/post-new.php1,683 ▼016.19 ▲0.08418.60 ▼17.68119.26 ▲1.67
Media Library /wp-admin/upload.php1,807 ▼05.09 ▲0.07168.41 ▼12.97124.44 ▼12.08

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 50% 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 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/admin-post-notifier/admin-post-notifier.php
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'AdminPostNotifier\\Admin' not found in wp-content/plugins/admin-post-notifier/src/Notifications.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'AdminPostNotifier\\Base' not found in wp-content/plugins/admin-post-notifier/src/Admin.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 96% from 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: admin, email, post, notifications, review

admin-post-notifier/admin-post-notifier.php 92% from 13 tests

"Admin Post Notifier" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Requires PHP: Required version must match the one declared in readme.txt ("5.3" instead of "7.4.13")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin434 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP14106202414
JSON20020

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity9.00
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.87
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes114.29%
Methods31
▷ Static methods619.35%
▷ Public methods2993.55%
▷ Protected methods00.00%
▷ Private methods26.45%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin