64% wpgalerts

Code Review | WPGAlerts

WordPress plugin WPGAlerts scored 64% from 54 tests.

About plugin

  • Plugin page: wpgalerts
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-3.9
  • WordPress version: 6.3.1
  • First release: Apr 20, 2014
  • Latest release: Apr 21, 2014
  • Number of updates: 11
  • Update frequency: every 0.2 days
  • Top authors: datainterlock (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,447 total downloads

Benchmarks

Plugin footprint 48% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼7.77ms] Passed 4 tests

An overview of server-side resources used by WPGAlerts
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.32 ▼12.07
Dashboard /wp-admin3.31 ▲0.0145.63 ▼2.09
Posts /wp-admin/edit.php3.36 ▲0.0142.45 ▼4.43
Add New Post /wp-admin/post-new.php5.89 ▲0.0185.14 ▼12.50
Media Library /wp-admin/upload.php3.23 ▲0.0135.46 ▲2.10
WPGAlerts /wp-admin/options-general.php?page=WPGAlerts-Options-Menu3.2032.42

Server storage [IO: ▲0.10MB] [DB: ▲0.08MB] Passed 3 tests

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: 2 new tables, 7 new options
New tables
wp_WPGAlerts
wp_WPGAFeeds
New WordPress options
widget_recent-posts
WPGAlerts_Author_Post
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for WPGAlerts
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲8414.40 ▲0.031.79 ▼0.4044.41 ▼2.95
Dashboard /wp-admin2,222 ▲345.82 ▼0.07106.91 ▼10.2774.52 ▲31.13
Posts /wp-admin/edit.php2,105 ▲162.02 ▼0.1233.98 ▼4.0732.87 ▼0.10
Add New Post /wp-admin/post-new.php1,530 ▲1117.53 ▼5.58748.72 ▲93.9352.43 ▲4.73
Media Library /wp-admin/upload.php1,410 ▲314.23 ▲0.0398.63 ▼3.5973.73 ▲27.98
WPGAlerts /wp-admin/options-general.php?page=WPGAlerts-Options-Menu9272.0727.0428.38

Uninstaller [IO: ▲0.10MB] [DB: ▲0.08MB] 25% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Uninstaller has failed for this plugin, leaving 6 files (0.10MB) in the plugin directory
    • (new file) WPGA_main.php
    • (new file) index.php
    • (new file) gpl.txt
    • (new file) images/WPGAicon.png
    • (new file) readme.txt
    • (new file) uninstall.php
  • Zombie tables were found after uninstall: 2 tables
    • wp_WPGAFeeds
    • wp_WPGAlerts
  • This plugin does not fully uninstall, leaving 7 options in the database
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • WPGAlerts_Author_Post
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/wpgalerts/uninstall.php:4

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% 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
4 plugin tags: alerts, alert, google, news

wpgalerts/WPGA_main.php 85% from 13 tests

The primary PHP file in "WPGAlerts" version 1.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 208 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wpgalerts.php" instead of "WPGA_main.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin491 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP34027491

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.24
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
1 PNG file occupies 0.05MB with 0.05MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/WPGAicon.png47.37KB0.17KB▼ 99.65%