Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼1.50ms] Passed 4 tests
An overview of server-side resources used by Infoset
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 43.17 ▼3.66 |
Dashboard /wp-admin | 3.37 ▲0.07 | 65.38 ▲12.17 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 48.34 ▼0.69 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 88.97 ▼9.68 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 43.36 ▲8.04 |
Infoset /wp-admin/options-general.php?page=infoset | 3.24 | 32.20 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Infoset
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲44 | 14.45 ▲0.25 | 2.81 ▲0.80 | 43.12 ▼6.15 |
Dashboard /wp-admin | 2,201 ▲21 | 5.65 ▲0.03 | 94.55 ▲2.36 | 43.29 ▲4.25 |
Posts /wp-admin/edit.php | 2,106 ▲6 | 1.97 ▼0.04 | 36.13 ▼2.98 | 37.42 ▼0.51 |
Add New Post /wp-admin/post-new.php | 1,693 ▲167 | 24.73 ▲1.77 | 633.69 ▼75.46 | 61.89 ▲7.40 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.21 ▲0.01 | 100.49 ▼2.57 | 49.48 ▲1.56 |
Infoset /wp-admin/options-general.php?page=infoset | 886 | 2.18 | 26.77 | 39.78 |
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
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=infoset
- > Notice in wp-content/plugins/infoset/infoset.php+470
Trying to access array offset on value of type bool
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 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Plugin Name: Please specify the plugin name on the first line (
=== infoset ===
)
infoset/infoset.php Passed 13 tests
Analyzing the main PHP file in "Infoset" version 1.0
43 characters long description:
Official Infoset chat widget 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
There were no executable files found in this plugin465 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 76 | 14 | 417 |
CSS | 1 | 0 | 0 | 45 |
Markdown | 1 | 0 | 0 | 2 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 4.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 1.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 19 | 61.29% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 12 | 38.71% |
Functions | 6 | |
▷ Named functions | 5 | 83.33% |
▷ Anonymous functions | 1 | 16.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 compressed PNG files occupy 0.01MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/oauth-login-20210118@3x.png | 4.15KB | 4.41KB | 0.00% |
assets/oauth-login-20210118.png | 1.71KB | 1.76KB | 0.00% |
assets/oauth-login-20210118@2x.png | 2.91KB | 3.08KB | 0.00% |