83% my-pro-aleart-bottom

Code Review | WP alerts bottom

WordPress plugin WP alerts bottom scored83%from 54 tests.

About plugin

  • Plugin page: my-pro-aleart-bottom
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.0.1
  • WordPress version: 6.3.1
  • First release: Nov 11, 2015
  • Latest release: Nov 11, 2015
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: Sohelwpexpert (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /569 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

An overview of server-side resources used by WP alerts bottom
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.90 ▼3.25
Dashboard /wp-admin3.32 ▲0.0146.48 ▼1.41
Posts /wp-admin/edit.php3.37 ▲0.0145.79 ▼7.15
Add New Post /wp-admin/post-new.php5.90 ▲0.0196.60 ▲1.85
Media Library /wp-admin/upload.php3.24 ▲0.0139.26 ▲5.01

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

WP alerts bottom: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,906 ▲16013.97 ▼0.336.47 ▲4.6844.32 ▼2.12
Dashboard /wp-admin2,215 ▲275.08 ▼0.98103.42 ▼1.0642.41 ▼0.62
Posts /wp-admin/edit.php2,098 ▲92.24 ▲0.1834.63 ▼5.2635.94 ▲0.52
Add New Post /wp-admin/post-new.php1,677 ▲16322.72 ▲5.11610.35 ▼39.3660.93 ▲6.43
Media Library /wp-admin/upload.php1,400 ▲124.35 ▲0.11102.67 ▲4.2542.72 ▲0.43

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

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× 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/my-pro-aleart-bottom/alerts-min.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Screenshots: Screenshot #1 (WP alerts bottom in a post.) image not found
  • Contributors: The plugin contributors field is not present
Please take inspiration from this readme.txt

my-pro-aleart-bottom/alerts-min.php 85% from 13 tests

The main file in "WP alerts bottom" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 152 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("my-pro-aleart-bottom.php" instead of "alerts-min.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected6,730 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
CSS357656,007
SVG200684
PHP1191038
JavaScript1071

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin