Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.55MB] [CPU: ▼1.32ms] Passed 4 tests
Server-side resources used by Visual CSS Style Editor
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.36 ▲0.63 | 52.14 ▲5.60 |
Dashboard /wp-admin | 4.18 ▲0.55 | 57.43 ▼10.33 |
Posts /wp-admin/edit.php | 4.23 ▲0.55 | 58.91 ▲5.28 |
Add New Post /wp-admin/post-new.php | 6.72 ▲0.57 | 102.64 ▼5.15 |
Media Library /wp-admin/upload.php | 4.04 ▲0.55 | 46.47 ▲4.92 |
Go Pro! /wp-admin/admin.php?page=yellow-pencil-license | 4.01 | 41.62 |
Import/Export /wp-admin/admin.php?page=yellow-pencil-export | 4.01 | 52.42 |
Customizing Type /wp-admin/admin.php?page=yellow-pencil-customize-type | 4.12 | 48.24 |
Customizations /wp-admin/admin.php?page=yellow-pencil-changes | 4.01 | 49.40 |
YellowPencil Editor /wp-admin/themes.php?page=yellow-pencil | 3.90 | 33.84 |
About /wp-admin/admin.php?page=wyp-welcome-screen | 4.01 | 45.35 |
Settings /wp-admin/admin.php?page=yellow-pencil-settings | 4.01 | 40.08 |
Custom Animations /wp-admin/admin.php?page=yellow-pencil-animations | 4.01 | 42.30 |
YellowPencil Editor /wp-admin/admin.php?page=yellow-pencil-editor | 4.04 | 36.20 |
Server storage [IO: ▲7.89MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 398 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
yp_new_custom_CSS_dir |
yp_700_db_updateX |
Browser metrics Passed 4 tests
Visual CSS Style Editor: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,871 ▲110 | 14.47 ▲0.27 | 1.87 ▲0.16 | 40.45 ▼0.25 |
Dashboard /wp-admin | 2,240 ▲72 | 5.65 ▲0.06 | 90.77 ▼9.09 | 38.78 ▼1.59 |
Posts /wp-admin/edit.php | 2,146 ▲46 | 2.02 ▼0.03 | 38.89 ▼3.56 | 33.64 ▼2.78 |
Add New Post /wp-admin/post-new.php | 1,600 ▲69 | 23.56 ▲0.11 | 662.66 ▲15.26 | 85.96 ▲31.76 |
Media Library /wp-admin/upload.php | 1,449 ▲49 | 4.34 ▲0.14 | 104.41 ▼13.76 | 42.22 ▼8.10 |
Go Pro! /wp-admin/admin.php?page=yellow-pencil-license | 923 | 2.48 | 40.82 | 37.78 |
Import/Export /wp-admin/admin.php?page=yellow-pencil-export | 895 | 2.03 | 30.65 | 37.76 |
Customizing Type /wp-admin/admin.php?page=yellow-pencil-customize-type | 252 | 0.48 | 1.03 | 36.33 |
Customizations /wp-admin/admin.php?page=yellow-pencil-changes | 995 | 2.48 | 38.48 | 29.08 |
YellowPencil Editor /wp-admin/themes.php?page=yellow-pencil | 5,263 | 5.46 | 168.79 | 152.06 |
About /wp-admin/admin.php?page=wyp-welcome-screen | 972 | 2.03 | 23.32 | 58.34 |
Settings /wp-admin/admin.php?page=yellow-pencil-settings | 989 | 2.59 | 34.07 | 30.74 |
Custom Animations /wp-admin/admin.php?page=yellow-pencil-animations | 954 | 2.59 | 33.21 | 28.79 |
YellowPencil Editor /wp-admin/admin.php?page=yellow-pencil-editor | 13 | 0.44 | 0.09 | 2.45 |
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
It is recommended to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- yp_new_custom_CSS_dir
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=yellow-pencil-license
- > request to
- > Notice in wp-config.php+20
Undefined index: REQUEST_METHOD
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
Please fix the following items
- 9× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/yellow-pencil-visual-theme-customizer/editor/lib/redirection.php
- > /wp-content/plugins/yellow-pencil-visual-theme-customizer/editor/lib/options-controller.php
- > /wp-content/plugins/yellow-pencil-visual-theme-customizer/editor/editor.php
- > /wp-content/plugins/yellow-pencil-visual-theme-customizer/admin/settings.php
- > /wp-content/plugins/yellow-pencil-visual-theme-customizer/editor/lib/properties.php
- > /wp-content/plugins/yellow-pencil-visual-theme-customizer/admin/lib/subscription-cancellation.php
- > /wp-content/plugins/yellow-pencil-visual-theme-customizer/editor/lib/demo-view.php
- > /wp-content/plugins/yellow-pencil-visual-theme-customizer/editor/lib/customization-popup.php
- > /wp-content/plugins/yellow-pencil-visual-theme-customizer/yellow-pencil.php
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
- > GET request to /wp-admin/admin.php?page=yellow-pencil-customize-type
- > Javascript (severe) in unknown
/wp-admin/admin.php?page=yellow-pencil-customize-type 1248:50 Uncaught TypeError: Cannot read properties of null (reading 'classList')
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
9 plugin tags: customize, animation, theme, font, css editor...
yellow-pencil-visual-theme-customizer/yellow-pencil.php 92% from 13 tests
"Visual CSS Style Editor" version 7.6.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("yellow-pencil-visual-theme-customizer.php" instead of "yellow-pencil.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected29,731 lines of code in 42 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 19 | 7,384 | 3,931 | 14,082 |
CSS | 7 | 1,712 | 83 | 8,915 |
PHP | 10 | 2,537 | 1,092 | 6,684 |
SVG | 1 | 0 | 0 | 32 |
Markdown | 1 | 8 | 0 | 14 |
JSON | 4 | 0 | 0 | 4 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.57 |
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 | 110 | |
▷ Named functions | 110 | 100.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
351 compressed PNG files occupy 4.64MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/pinstripe.png | 0.29KB | 0.28KB | ▼ 3.02% |
assets/silver_scales.png | 0.21KB | 0.23KB | 0.00% |
assets/black_mamba.png | 0.21KB | 0.18KB | ▼ 13.76% |
assets/white_leather.png | 30.09KB | 31.03KB | 0.00% |
assets/farmer.png | 36.57KB | 38.13KB | 0.00% |