84% alerter

Code Review | Alerter Plugin

WordPress plugin Alerter Plugin scored84%from 54 tests.

About plugin

  • Plugin page: alerter
  • Plugin version: 0.5.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.8.2
  • WordPress version: 6.3.1
  • First release: Oct 27, 2016
  • Latest release: Oct 3, 2017
  • Number of updates: 38
  • Update frequency: every 9.0 days
  • Top authors: ctuxboy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /831 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▼0.21MB] [CPU: ▼22.67ms] Passed 4 tests

Analyzing server-side resources used by Alerter Plugin
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.40 ▼0.0627.79 ▼19.18
Dashboard /wp-admin3.08 ▼0.2229.25 ▼31.58
Posts /wp-admin/edit.php3.22 ▼0.1437.23 ▼18.78
Add New Post /wp-admin/post-new.php5.46 ▼0.4378.49 ▼21.13
Media Library /wp-admin/upload.php3.17 ▼0.0642.10 ▲1.74

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Alerter Plugin
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲5914.36 ▲0.181.64 ▼0.2146.92 ▲3.30
Dashboard /wp-admin2,223 ▲464.95 ▼0.5996.07 ▼1.3441.09 ▲1.37
Posts /wp-admin/edit.php2,115 ▲152.31 ▲0.3441.19 ▲5.2135.16 ▲0.24
Add New Post /wp-admin/post-new.php1,562 ▲3618.34 ▼4.35608.51 ▼86.0643.86 ▼17.70
Media Library /wp-admin/upload.php1,429 ▲294.43 ▲0.3597.40 ▼8.9139.54 ▼9.37

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/alerter/admin/settings.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: textbox, alert, notifier, notify

alerter/alerter.php 92% from 13 tests

The entry point to "Alerter Plugin" version 0.5.5 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 146 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin272 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP33650165
PO File22628104
JavaScript1003

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.08
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

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.10MB with 0.07MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png84.48KB24.22KB▼ 71.33%
assets/screenshot-2.png14.37KB4.24KB▼ 70.46%