Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.29ms] Passed 4 tests
An overview of server-side resources used by Custom Post Styles
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 44.19 ▲2.79 |
Dashboard /wp-admin | 3.31 ▲0.01 | 52.64 ▼10.30 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 55.63 ▲3.12 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 103.87 ▼3.61 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.34 ▼10.02 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Custom Post Styles
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.72 ▲0.44 | 1.75 ▼0.43 | 43.29 ▼4.31 |
Dashboard /wp-admin | 2,198 ▲27 | 5.65 ▼0.02 | 90.86 ▼7.68 | 46.27 ▲1.87 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 2.02 ▼0.01 | 37.83 ▼0.44 | 40.61 ▲4.95 |
Add New Post /wp-admin/post-new.php | 1,515 ▼11 | 20.56 ▼2.83 | 671.56 ▼134.65 | 63.39 ▼0.15 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.23 ▲0.10 | 109.13 ▼8.83 | 46.84 ▼2.90 |
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
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 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
Please fix the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/custom-post-styles/cps.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Screenshots: Please add an image for screenshot #1 (Css editor that appears when you editing post.)
custom-post-styles/cps.php 92% from 13 tests
The main PHP script in "Custom Post Styles" version 1.0.1 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("custom-post-styles.php" instead of "cps.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected106 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 28 | 31 | 81 |
SVG | 1 | 0 | 1 | 25 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 2.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 8 | 100.00% |
▷ Public methods | 6 | 75.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 25.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.10MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-256x256.png | 8.17KB | 3.15KB | ▼ 61.47% |
assets/banner-1544x500.png | 44.44KB | 12.66KB | ▼ 71.51% |
screenshot-1.png | 22.57KB | 4.02KB | ▼ 82.19% |
assets/icon-128x128.png | 3.54KB | 1.84KB | ▼ 47.90% |
assets/banner-772x250.png | 18.58KB | 6.37KB | ▼ 65.70% |