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.08MB] [CPU: ▼10.42ms] Passed 4 tests
A check of server-side resources used by Post/Page specific custom CSS
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.19 | 44.58 ▲6.28 |
Dashboard /wp-admin | 3.51 ▲0.17 | 45.15 ▼15.70 |
Posts /wp-admin/edit.php | 3.62 ▲0.27 | 47.94 ▼4.93 |
Add New Post /wp-admin/post-new.php | 5.64 ▼0.24 | 72.26 ▼22.83 |
Media Library /wp-admin/upload.php | 3.43 ▲0.21 | 35.33 ▲1.79 |
Post/Page CSS /wp-admin/options-general.php?page=post-page-custom-css | 3.40 | 33.54 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Post/Page specific custom CSS
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲47 | 14.35 ▼0.21 | 1.56 ▼0.39 | 38.26 ▼0.51 |
Dashboard /wp-admin | 2,199 ▲21 | 5.59 ▼0.01 | 90.00 ▼8.93 | 37.78 ▼4.79 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.98 ▼0.04 | 39.93 ▼3.96 | 35.67 ▼1.67 |
Add New Post /wp-admin/post-new.php | 6,425 ▲4,899 | 27.67 ▲4.42 | 973.05 ▲322.17 | 54.67 ▼2.38 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.26 ▲0.04 | 95.49 ▲0.91 | 42.13 ▼2.09 |
Post/Page CSS /wp-admin/options-general.php?page=post-page-custom-css | 954 | 2.03 | 22.50 | 31.14 |
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
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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 just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% 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 to be fixed:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
postpage-specific-custom-css/post-page-specific-custom-css.php 85% from 13 tests
The primary PHP file in "Post/Page specific custom CSS" version 0.2.4 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("postpage-specific-custom-css.php" instead of "post-page-specific-custom-css.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 300 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected1,030 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 97 | 39 | 942 |
PO File | 1 | 25 | 25 | 88 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 53.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 97.00 |
Average method complexity | 2.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 50 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 44 | 88.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 12.00% |
Functions | 3 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 3 | 100.00% |
Constants | 20 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 20 | 100.00% |
▷ Public constants | 20 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 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 |
assets/flags/pl.png | 0.64KB | 0.17KB | ▼ 74.09% |
assets/flags/us.png | 2.17KB | 1.47KB | ▼ 32.06% |
assets/flags/ch.png | 1.28KB | 0.50KB | ▼ 61.19% |
assets/flags/gb.png | 4.48KB | 2.28KB | ▼ 49.07% |
assets/flags/eu.png | 1.91KB | 0.77KB | ▼ 59.48% |