84% simple-post-alerts

Code Review | Simple Post Alerts

WordPress plugin Simple Post Alerts scored84%from 54 tests.

About plugin

  • Plugin page: simple-post-alerts
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.2.4
  • WordPress version: 6.3.1
  • First release: Aug 15, 2015
  • Latest release: Aug 17, 2015
  • Number of updates: 7
  • Update frequency: every 0.7 days
  • Top authors: alexphelps3 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /818 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
Installer ran successfully

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

A check of server-side resources used by Simple Post Alerts
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0337.23 ▼3.98
Dashboard /wp-admin3.32 ▲0.0245.19 ▼3.55
Posts /wp-admin/edit.php3.37 ▲0.0246.72 ▼2.76
Add New Post /wp-admin/post-new.php5.90 ▲0.0281.19 ▼24.07
Media Library /wp-admin/upload.php3.24 ▲0.0232.30 ▲0.43

Server storage [IO: ▲0.00MB] [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, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Simple Post Alerts
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.15 ▼1.221.60 ▼0.2240.86 ▼2.75
Dashboard /wp-admin2,206 ▲215.79 ▼0.06103.76 ▼5.2339.00 ▼7.88
Posts /wp-admin/edit.php2,086 ▼32.04 ▲0.0539.49 ▲2.8034.81 ▼0.60
Add New Post /wp-admin/post-new.php1,533 ▼022.93 ▼0.58581.97 ▼26.8565.09 ▲5.38
Media Library /wp-admin/upload.php1,391 ▼04.25 ▲0.0598.56 ▼5.6941.74 ▼1.61

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-post-alerts/simple-post-alerts.php:30

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)
There were no browser issues found

Optimizations

Plugin configuration Passed 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
3 plugin tags: post alerts, pending review, post notifications

simple-post-alerts/simple-post-alerts.php Passed 13 tests

This is the main PHP file of "Simple Post Alerts" version 0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
77 characters long description:
Allows users to easily get alerts for new posts pending review and published.

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
There were no executable files found in this plugin52 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14852

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.15
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

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin