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.12MB] [CPU: ▼6.83ms] Passed 4 tests
Server-side resources used by Styleguide - Custom Fonts and Colors
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.13 | 47.06 ▲4.91 |
Dashboard /wp-admin | 3.44 ▲0.09 | 47.19 ▼19.99 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 52.20 ▲3.16 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 88.25 ▼9.52 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 38.73 ▼0.95 |
Server storage [IO: ▲0.65MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 34 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Styleguide - Custom Fonts and Colors
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲29 | 13.22 ▼1.08 | 4.59 ▲2.63 | 47.74 ▲5.20 |
Dashboard /wp-admin | 2,206 ▲18 | 4.87 ▼0.22 | 113.64 ▲0.89 | 40.87 ▼5.89 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.98 ▼0.07 | 42.41 ▲0.44 | 38.23 ▲1.97 |
Add New Post /wp-admin/post-new.php | 1,534 ▲15 | 23.22 ▲0.02 | 629.30 ▼31.66 | 53.57 ▼9.25 |
Media Library /wp-admin/upload.php | 1,385 ▼3 | 4.20 ▼0.13 | 100.09 ▼5.75 | 41.72 ▼2.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
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
Even though everything seems fine, this is not an exhaustive test
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
- 24× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_theme_support() in wp-content/plugins/styleguide/theme-styles/twenty-fifteen.php:56
- > PHP Fatal error
Uncaught Error: Call to undefined function add_theme_support() in wp-content/plugins/styleguide/theme-styles/romero.php:102
- > PHP Fatal error
Uncaught Error: Call to undefined function add_theme_support() in wp-content/plugins/styleguide/theme-styles/twenty-ten.php:55
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/styleguide/includes/class.styleguide.php:49
- > PHP Fatal error
Uncaught Error: Call to undefined function add_theme_support() in wp-content/plugins/styleguide/theme-styles/twenty-thirteen.php:143
- > PHP Fatal error
Uncaught Error: Call to undefined function add_theme_support() in wp-content/plugins/styleguide/theme-styles/adaline.php:75
- > PHP Fatal error
Uncaught Error: Call to undefined function add_theme_support() in wp-content/plugins/styleguide/theme-styles/twenty-seventeen.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function add_theme_support() in wp-content/plugins/styleguide/theme-styles/opti.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function add_theme_support() in wp-content/plugins/styleguide/theme-styles/label.php:117
- > PHP Fatal error
Uncaught Error: Call to undefined function add_theme_support() in wp-content/plugins/styleguide/theme-styles/monet.php:86
- > 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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
10 plugin tags: google fonts, colour, fonts, colors, customizer...
styleguide/index.php 92% from 13 tests
The primary PHP file in "Styleguide - Custom Fonts and Colors" version 1.8.1 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("styleguide.php" instead of "index.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
Success! There were no dangerous files found in this plugin3,164 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 28 | 403 | 658 | 2,864 |
JavaScript | 2 | 73 | 134 | 225 |
LESS | 1 | 8 | 0 | 41 |
CSS | 1 | 0 | 0 | 34 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 22.25 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 2.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.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 | 45 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 45 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.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 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.54MB with 0.41MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshots/screenshot-1.png | 553.77KB | 135.38KB | ▼ 75.55% |