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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 35.99 ▼4.53 |
Dashboard /wp-admin | 3.32 ▲0.02 | 46.36 ▼1.70 |
Posts /wp-admin/edit.php | 3.43 ▲0.08 | 46.21 ▼1.24 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 103.32 ▲10.44 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 31.81 ▼1.58 |
WPAlerts /wp-admin/options-general.php?page=wpalerts-key-api-config | 3.21 | 30.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.26 ▼1.32 | 1.61 ▼0.16 | 36.67 ▼10.11 |
Dashboard /wp-admin | 2,210 ▲25 | 4.84 ▼0.01 | 110.56 ▲3.02 | 40.73 ▼9.99 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.04 ▲0.03 | 38.86 ▲4.48 | 34.06 ▼1.64 |
Add New Post /wp-admin/post-new.php | 1,517 ▼16 | 17.43 ▼5.98 | 628.28 ▼63.80 | 59.19 ▲5.71 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.20 ▲0.05 | 94.86 ▼11.25 | 44.38 ▼0.64 |
WPAlerts /wp-admin/options-general.php?page=wpalerts-key-api-config | 789 | 2.02 | 24.10 | 26.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 1,050 | 1,563 | 2,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 code | 0.53 |
Average class complexity | 134.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 283.00 |
Average method complexity | 5.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 51.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 1 | 16.67% |
Methods | 184 | |
▷ Static methods | 59 | 32.07% |
▷ Public methods | 137 | 74.46% |
▷ Protected methods | 5 | 2.72% |
▷ Private methods | 42 | 22.83% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 16 | |
▷ Global constants | 7 | 43.75% |
▷ Class constants | 9 | 56.25% |
▷ Public constants | 9 | 100.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