Benchmarks
Plugin footprint Passed 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.05MB] [CPU: ▼148.75ms] Passed 4 tests
An overview of server-side resources used by Stilus
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.89 ▲0.05 | 23.47 ▼0.98 |
Dashboard /wp-admin | 3.12 ▲0.05 | 33.73 ▼4.13 |
Posts /wp-admin/edit.php | 3.20 ▲0.09 | 31.23 ▼11.58 |
Add New Post /wp-admin/post-new.php | 5.48 ▲0.04 | 70.27 ▼578.32 |
Media Library /wp-admin/upload.php | 3.06 ▲0.05 | 23.74 ▲1.39 |
Stilus /wp-admin/options-general.php?page=st_settings | 3.03 | 20.34 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 18 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Stilus: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,693 ▲92 | 15.56 ▼0.44 | 5.11 ▼3.34 | 77.08 ▼2.50 |
Dashboard /wp-admin | 2,955 ▲60 | 6.13 ▼0.05 | 115.98 ▼18.42 | 184.15 ▲12.02 |
Posts /wp-admin/edit.php | 2,738 ▼2 | 3.11 ▼0.12 | 72.53 ▲9.98 | 143.71 ▲2.89 |
Add New Post /wp-admin/post-new.php | 3,711 ▲7 | 15.11 ▼3.65 | 422.87 ▼16.94 | 171.99 ▲1.39 |
Media Library /wp-admin/upload.php | 1,781 ▲29 | 5.57 ▲0.08 | 133.79 ▼10.81 | 208.93 ▲27.72 |
Stilus /wp-admin/options-general.php?page=st_settings | 1,103 | 2.38 | 53.58 | 114.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
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
The following issues need your attention
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/stilus/stilus.php
- > /wp-content/plugins/stilus/inc/templates/loading.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Screenshots: Please a description for screenshot #1 in stilus/assets to your readme.txt
- Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
stilus/stilus.php 85% from 13 tests
"Stilus" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
- Description: Please don't use more than 140 characters for the plugin description (currently 143 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected339 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 76 | 114 | 283 |
JavaScript | 1 | 11 | 11 | 56 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 3.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 4 | 19.05% |
▷ Public methods | 20 | 95.24% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 4.76% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
7 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/loading2.png | 1.45KB | 0.72KB | ▼ 50.24% |
img/loading3.png | 1.43KB | 0.71KB | ▼ 50.14% |
img/loading4.png | 1.43KB | 0.71KB | ▼ 50.10% |
img/loading5.png | 1.42KB | 0.69KB | ▼ 51.20% |
img/loading0.png | 1.38KB | 0.68KB | ▼ 51.16% |