Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.08MB] [CPU: ▼1.66ms] Passed 4 tests
Analyzing server-side resources used by StatusCake
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 36.53 ▼3.30 |
Dashboard /wp-admin | 3.39 ▲0.09 | 50.35 ▲4.68 |
Posts /wp-admin/edit.php | 3.50 ▲0.15 | 49.28 ▲2.02 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 85.02 ▼6.33 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 36.04 ▲0.97 |
StatusCake /wp-admin/options-general.php?page=statuscake | 3.28 | 34.46 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for StatusCake
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.23 ▼1.08 | 1.62 ▼0.11 | 41.11 ▲0.74 |
Dashboard /wp-admin | 2,207 ▲19 | 5.85 ▲0.98 | 95.65 ▼10.04 | 39.74 ▲0.86 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.05 ▲0.05 | 39.07 ▲2.51 | 34.94 ▲2.40 |
Add New Post /wp-admin/post-new.php | 1,536 ▲22 | 23.08 ▲5.37 | 662.48 ▼48.37 | 61.85 ▼4.05 |
Media Library /wp-admin/upload.php | 1,395 ▲10 | 4.23 ▲0.02 | 96.39 ▼7.89 | 42.84 ▼3.05 |
StatusCake /wp-admin/options-general.php?page=statuscake | 777 | 2.05 | 24.13 | 25.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: statuscake, uptime, downtime, monitoring, alerts
wpstatuscake/wpstatuscake.php Passed 13 tests
The primary PHP file in "StatusCake" version 1.0.11 is used by WordPress to initiate all plugin functionality
59 characters long description:
Easy integration of StatusCake into your WordPress website.
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
Good job! No executable or dangerous file extensions detected550 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 134 | 417 | 511 |
Markdown | 1 | 11 | 0 | 22 |
XML | 1 | 5 | 2 | 16 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 8.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 2.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 43 | |
▷ Static methods | 3 | 6.98% |
▷ Public methods | 39 | 90.70% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 9.30% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin