84% wpalerts

Code Review | WPAlerts

WordPress plugin WPAlerts scored84%from 54 tests.

About plugin

  • Plugin page: wpalerts
  • Plugin version: 1.5.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.7.7
  • WordPress version: 6.3.1
  • First release: Aug 12, 2015
  • Latest release: Apr 22, 2017
  • Number of updates: 20
  • Update frequency: every 31.0 days
  • Top authors: scherbakov.webstylestudio (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

40+ active /1,336 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by WPAlerts
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0235.99 ▼4.53
Dashboard /wp-admin3.32 ▲0.0246.36 ▼1.70
Posts /wp-admin/edit.php3.43 ▲0.0846.21 ▼1.24
Add New Post /wp-admin/post-new.php5.90 ▲0.01103.32 ▲10.44
Media Library /wp-admin/upload.php3.24 ▲0.0131.81 ▼1.58
WPAlerts /wp-admin/options-general.php?page=wpalerts-key-api-config3.2130.15

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for WPAlerts
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.26 ▼1.321.61 ▼0.1636.67 ▼10.11
Dashboard /wp-admin2,210 ▲254.84 ▼0.01110.56 ▲3.0240.73 ▼9.99
Posts /wp-admin/edit.php2,093 ▲42.04 ▲0.0338.86 ▲4.4834.06 ▼1.64
Add New Post /wp-admin/post-new.php1,517 ▼1617.43 ▼5.98628.28 ▼63.8059.19 ▲5.71
Media Library /wp-admin/upload.php1,392 ▲74.20 ▲0.0594.86 ▼11.2544.38 ▼0.64
WPAlerts /wp-admin/options-general.php?page=wpalerts-key-api-config7892.0224.1026.03

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% 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
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/wpalerts/wpalerts.php:2124

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
10 plugin tags: updates, wordpressorg, plugins, wpalerts, wordpress...

wpalerts/wpalerts.php Passed 13 tests

The main PHP script in "WPAlerts" version 1.5.3 is automatically included on every request by WordPress
132 characters long description:
WPAlerts is a free plugin that helps you to make updates on your WordPress sites (with the WPAlerts software http://wp-alerts.com/).

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin2,439 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP21,0501,5632,439

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity134.83
▷ Minimum class complexity1.00
▷ Maximum class complexity283.00
Average method complexity5.36
▷ Minimum method complexity1.00
▷ Maximum method complexity51.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes116.67%
Methods184
▷ Static methods5932.07%
▷ Public methods13774.46%
▷ Protected methods52.72%
▷ Private methods4222.83%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants16
▷ Global constants743.75%
▷ Class constants956.25%
▷ Public constants9100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

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