90% wpstatuscake

Code Review | StatusCake

WordPress plugin StatusCake scored 90% from 54 tests.

About plugin

  • Plugin page: wpstatuscake
  • Plugin version: 1.0.11
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.6
  • WordPress version: 6.3.1
  • First release: Nov 2, 2015
  • Latest release: Oct 15, 2016
  • Number of updates: 27
  • Update frequency: every 12.9 days
  • Top authors: s3rgiosan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 7,651 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
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
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0936.53 ▼3.30
Dashboard /wp-admin3.39 ▲0.0950.35 ▲4.68
Posts /wp-admin/edit.php3.50 ▲0.1549.28 ▲2.02
Add New Post /wp-admin/post-new.php5.97 ▲0.0885.02 ▼6.33
Media Library /wp-admin/upload.php3.31 ▲0.0836.04 ▲0.97
StatusCake /wp-admin/options-general.php?page=statuscake3.2834.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.23 ▼1.081.62 ▼0.1141.11 ▲0.74
Dashboard /wp-admin2,207 ▲195.85 ▲0.9895.65 ▼10.0439.74 ▲0.86
Posts /wp-admin/edit.php2,093 ▲42.05 ▲0.0539.07 ▲2.5134.94 ▲2.40
Add New Post /wp-admin/post-new.php1,536 ▲2223.08 ▲5.37662.48 ▼48.3761.85 ▼4.05
Media Library /wp-admin/upload.php1,395 ▲104.23 ▲0.0296.39 ▼7.8942.84 ▼3.05
StatusCake /wp-admin/options-general.php?page=statuscake7772.0524.1325.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:
LanguageFilesBlank linesComment linesLines of code
PHP13134417511
Markdown111022
XML15216
JSON1001

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 code0.35
Average class complexity8.43
▷ Minimum class complexity1.00
▷ Maximum class complexity39.00
Average method complexity2.24
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods43
▷ Static methods36.98%
▷ Public methods3990.70%
▷ Protected methods00.00%
▷ Private methods49.30%
Functions3
▷ Named functions133.33%
▷ Anonymous functions266.67%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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