Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼6.24ms] Passed 4 tests
An overview of server-side resources used by TJ Custom CSS
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 41.92 ▼5.51 |
Dashboard /wp-admin | 3.32 ▲0.02 | 49.55 ▼4.34 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 50.82 ▲0.27 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 84.59 ▼15.36 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 39.40 ▲2.60 |
Custom CSS /wp-admin/themes.php?page=tj-custom-css | 3.21 | 33.09 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for TJ Custom CSS
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.35 ▲0.21 | 1.70 ▲0.01 | 40.60 ▼3.90 |
Dashboard /wp-admin | 2,196 ▲15 | 5.57 ▼0.14 | 90.38 ▼13.00 | 40.61 ▼10.21 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 2.02 ▲0.08 | 40.44 ▲2.67 | 36.05 ▼3.71 |
Add New Post /wp-admin/post-new.php | 1,534 ▲6 | 23.23 ▲0.13 | 673.49 ▼34.76 | 65.81 ▲10.68 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.20 ▲0.01 | 95.61 ▼12.34 | 41.32 ▼4.12 |
Custom CSS /wp-admin/themes.php?page=tj-custom-css | 995 | 2.10 | 38.02 | 33.06 |
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
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
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 take a closer look at the following
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/theme-junkie-custom-css/admin/admin.php:36
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/theme-junkie-custom-css/inc/functions.php:36
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/theme-junkie-custom-css/admin/customize.php:22
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Control' not found in wp-content/plugins/theme-junkie-custom-css/admin/customize-control-textarea.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Add images for these screenshots: #1 (Custom CSS settings.), #2 (Customizer.)
theme-junkie-custom-css/tj-custom-css.php 92% from 13 tests
The main PHP script in "TJ Custom CSS" version 0.1.6 is automatically included on every request by WordPress
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("theme-junkie-custom-css.php" instead of "tj-custom-css.php")
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
Everything looks great! No dangerous files found in this plugin397 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 35 | 22 | 220 |
PHP | 6 | 70 | 179 | 163 |
JavaScript | 2 | 0 | 0 | 14 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.09 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.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 | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 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
2 compressed PNG files occupy 0.02MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 7.03KB | 7.05KB | 0.00% |
screenshot-1.png | 15.74KB | 15.26KB | ▼ 3.05% |