Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼297.16ms] Passed 4 tests
Analyzing server-side resources used by My Custom Styles
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.15 | 54.97 ▲2.78 |
Dashboard /wp-admin | 3.53 ▲0.09 | 33.89 ▼0.04 |
Posts /wp-admin/edit.php | 3.76 ▲0.09 | 37.54 ▼4.62 |
Add New Post /wp-admin/post-new.php | 7.00 ▼0.01 | 94.19 ▼1,185.14 |
Media Library /wp-admin/upload.php | 3.41 ▲0.08 | 26.60 ▲1.15 |
CSS Inserter /wp-admin/options-general.php?page=my-custom-styles | 3.52 | 25.13 |
Server storage [IO: ▲2.25MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 72 new files
Database: no new tables, 1 new option
New WordPress options |
---|
spacexchimp_p003_service_info |
Browser metrics Passed 4 tests
An overview of browser requirements for My Custom Styles
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,800 ▲58 | 16.19 ▲0.20 | 6.71 ▲0.44 | 2.36 ▲0.00 |
Dashboard /wp-admin | 2,897 ▲36 | 6.11 ▼0.08 | 114.87 ▼21.95 | 154.80 ▼5.77 |
Posts /wp-admin/edit.php | 2,696 ▲2 | 3.37 ▲0.13 | 63.82 ▼0.12 | 142.47 ▼0.89 |
Add New Post /wp-admin/post-new.php | 1,784 ▲73 | 17.05 ▼3.66 | 415.12 ▼32.38 | 156.80 ▼1.46 |
Media Library /wp-admin/upload.php | 1,700 ▲2 | 5.49 ▲0.01 | 145.07 ▲6.95 | 192.36 ▲8.09 |
CSS Inserter /wp-admin/options-general.php?page=my-custom-styles | 3,098 | 3.76 | 84.26 | 112.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 1 option in the database
- spacexchimp_p003_service_info
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 15× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
- > /wp-content/plugins/my-custom-styles/inc/php/upgrade.php
- > /wp-content/plugins/my-custom-styles/my-custom-styles.php
- > /wp-content/plugins/my-custom-styles/inc/php/inline-js.php
- > /wp-content/plugins/my-custom-styles/inc/php/versioning.php
- > /wp-content/plugins/my-custom-styles/inc/php/tabs/usage.php
- > /wp-content/plugins/my-custom-styles/inc/php/page.php
- > /wp-content/plugins/my-custom-styles/inc/php/enqueue.php
- > /wp-content/plugins/my-custom-styles/inc/php/tabs/support.php
- > /wp-content/plugins/my-custom-styles/inc/php/sidebar.php
- > /wp-content/plugins/my-custom-styles/inc/php/tabs/faq.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Tags: There are too many tags (22 tag instead of maximum 10)
my-custom-styles/my-custom-styles.php 92% from 13 tests
"My Custom Styles" version 4.51'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:
- Description: The description should be shorter than 140 characters (currently 156 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin17,485 lines of code in 51 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 14 | 1,147 | 1,080 | 9,354 |
SVG | 2 | 1 | 0 | 2,677 |
PO File | 5 | 760 | 775 | 1,695 |
Markdown | 3 | 865 | 0 | 1,298 |
PHP | 16 | 229 | 291 | 996 |
CSS | 5 | 72 | 96 | 850 |
HTML | 5 | 93 | 0 | 568 |
JSON | 1 | 0 | 0 | 47 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 22 | |
▷ Named functions | 22 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 compressed PNG files occupy 0.04MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/img/thanks.png | 9.03KB | 9.47KB | 0.00% |
inc/img/upgrade.png | 9.02KB | 9.71KB | 0.00% |
inc/img/spacexchimp-logo.png | 21.01KB | 14.98KB | ▼ 28.69% |