Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.17MB] [CPU: ▼5.56ms] Passed 4 tests
Analyzing server-side resources used by SiteOrigin CSS
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.19 | 36.08 ▼2.19 |
Dashboard /wp-admin | 3.49 ▲0.14 | 53.35 ▼6.70 |
Posts /wp-admin/edit.php | 3.60 ▲0.24 | 50.22 ▲4.68 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.18 | 83.85 ▼14.23 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 35.53 ▲0.90 |
Custom CSS /wp-admin/themes.php?page=so_custom_css | 3.62 | 39.11 |
Server storage [IO: ▲2.38MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 146 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for SiteOrigin CSS
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲72 | 14.67 ▲0.49 | 1.75 ▲0.11 | 38.66 ▼2.20 |
Dashboard /wp-admin | 2,199 ▲19 | 5.54 ▼0.11 | 82.18 ▼7.90 | 38.88 ▼4.89 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.02 ▲0.07 | 40.53 ▲3.14 | 36.13 ▲0.16 |
Add New Post /wp-admin/post-new.php | 1,537 ▲9 | 23.03 ▼0.04 | 622.77 ▲7.07 | 60.31 ▲7.47 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.16 ▼0.00 | 97.61 ▼4.65 | 41.36 ▲0.25 |
Custom CSS /wp-admin/themes.php?page=so_custom_css | 7,676 | 10.41 | 302.02 | 66.64 |
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
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
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
- 10× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/so-css/inc/installer/siteorigin-installer.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/so-css/inc/controller-config.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/so-css/tpl/js-templates.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/so-css/so-css.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/so-css/inc/installer/inc/admin.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/so-css/inc/installer/tpl/action-btn.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/so-css/tpl/inspector-templates.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/so-css/inc/installer/tpl/admin.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/so-css/inc/legacy.php:10
- > PHP Fatal error
Uncaught Error: Class 'SiteOrigin_CSS' not found in wp-content/plugins/so-css/tpl/page.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: design, customize, visual css, css editor, css
so-css/so-css.php Passed 13 tests
The entry point to "SiteOrigin CSS" version 1.5.9 is a PHP file that has certain tags in its header comment area
39 characters long description:
An advanced CSS editor from SiteOrigin.
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 detected35,636 lines of code in 132 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 92 | 5,558 | 6,516 | 29,943 |
PHP | 11 | 650 | 318 | 2,890 |
CSS | 14 | 171 | 37 | 2,135 |
HTML | 5 | 95 | 0 | 460 |
SVG | 4 | 1 | 1 | 85 |
JSON | 2 | 0 | 0 | 69 |
Markdown | 4 | 33 | 0 | 54 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 84.25 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 159.00 |
Average method complexity | 4.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 101 | |
▷ Static methods | 7 | 6.93% |
▷ Public methods | 60 | 59.41% |
▷ Protected methods | 39 | 38.61% |
▷ Private methods | 2 | 1.98% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 6 | 85.71% |
▷ Class constants | 1 | 14.29% |
▷ Public constants | 1 | 100.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
4 PNG files occupy 0.07MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/minicolors/jquery.minicolors.png | 67.02KB | 34.31KB | ▼ 48.80% |
css/images/icon.png | 3.18KB | 2.53KB | ▼ 20.53% |
inc/installer/img/screenshot.png | 0.26KB | 0.23KB | ▼ 9.09% |
css/images/separator.png | 1.46KB | 0.78KB | ▼ 46.65% |