90% supervisor-com

Code Review | supervisor.com

WordPress plugin supervisor.com scored 90% from 54 tests.

About plugin

  • Plugin page: supervisor-com
  • Plugin version: 0.0.9
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jun 14, 2022
  • Latest release: Aug 16, 2022
  • Number of updates: 19
  • Update frequency: every 3.3 days
  • Top authors: supervisorcom (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 312 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.01MB] [CPU: ▼1.84ms] Passed 4 tests

This is a short check of server-side resources used by supervisor.com
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.09 ▼0.40
Dashboard /wp-admin3.31 ▲0.0145.90 ▼3.59
Posts /wp-admin/edit.php3.36 ▲0.0145.54 ▼0.80
Add New Post /wp-admin/post-new.php5.90 ▲0.0283.98 ▼2.56
Media Library /wp-admin/upload.php3.23 ▲0.0136.86 ▲1.95

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for supervisor.com
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲8113.14 ▼1.151.63 ▼0.0343.73 ▼3.15
Dashboard /wp-admin2,222 ▲345.01 ▲0.09114.09 ▼1.8741.95 ▼6.31
Posts /wp-admin/edit.php2,105 ▲161.99 ▼0.0636.31 ▲0.2132.35 ▼3.61
Add New Post /wp-admin/post-new.php1,527 ▼617.69 ▼3.45688.54 ▼64.7153.69 ▲4.25
Media Library /wp-admin/upload.php1,404 ▲164.17 ▼0.0293.69 ▼5.7445.94 ▼0.72

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_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

Smoke tests Passed 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 Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

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: testing, load, load test, monitoring, uptime...

supervisor-com/supervisor-com.php Passed 13 tests

The primary PHP file in "supervisor.com" version 0.0.9 is used by WordPress to initiate all plugin functionality
64 characters long description:
supervisor.com load testing and monitoring plugin for WordPress.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected209 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP23510209

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.11
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%
Functions12
▷ Named functions541.67%
▷ Anonymous functions758.33%
Constants0
▷ Global constants00.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
No PNG files were detected