Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼4.72ms] Passed 4 tests
Analyzing server-side resources used by Google Typography
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 43.20 ▲2.70 |
Dashboard /wp-admin | 3.33 ▲0.03 | 48.31 ▲0.11 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 48.92 ▼2.47 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 85.92 ▼15.26 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 32.56 ▼1.27 |
Typography /wp-admin/themes.php?page=typography | 5.37 | 39.45 |
Server storage [IO: ▲1.36MB] [DB: ▲0.21MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Google Typography
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,863 ▲128 | 13.48 ▼0.90 | 1.93 ▲0.36 | 40.73 ▼8.24 |
Dashboard /wp-admin | 2,244 ▲59 | 5.26 ▲0.37 | 113.86 ▲8.37 | 39.15 ▼6.26 |
Posts /wp-admin/edit.php | 2,131 ▲39 | 2.45 ▲0.40 | 43.05 ▲2.30 | 34.79 ▼1.71 |
Add New Post /wp-admin/post-new.php | 1,549 ▲29 | 23.56 ▲0.07 | 782.93 ▲108.44 | 44.88 ▼15.15 |
Media Library /wp-admin/upload.php | 1,429 ▲44 | 4.55 ▲0.33 | 101.11 ▼3.94 | 43.17 ▼1.36 |
Typography /wp-admin/themes.php?page=typography | 7,866 | 2.47 | 47.41 | 46.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.21MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- 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
Everything seems fine, however this is by no means an exhaustive test
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
The following issues need your attention
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/google-typography/google-typography.php:40
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 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
Attributes that need to be fixed:
- Screenshots: These screenshots do not have images: #1 (Easily customize any fonts on your website with Google Typography.), #2 (Choose from over 600+ fonts, with new fonts added daily.), #3 (Amazing typography, all without writing a single line of code.)
google-typography/google-typography.php 92% from 13 tests
The primary PHP file in "Google Typography" version 1.1.2 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Description: The description should be shorter than 140 characters (currently 157 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected1,311 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 10 | 20 | 640 |
PHP | 1 | 129 | 165 | 334 |
JavaScript | 2 | 61 | 16 | 200 |
PO File | 1 | 50 | 50 | 114 |
Markdown | 1 | 10 | 0 | 23 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 33.00 |
▷ Minimum class complexity | 33.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 2.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 17 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
14 PNG files occupy 1.25MB with 0.58MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/chosen-sprite@2x.png | 0.85KB | 0.83KB | ▼ 3.10% |
images/step_2@2x.png | 66.21KB | 29.62KB | ▼ 55.26% |
images/step_1@2x.png | 68.56KB | 24.19KB | ▼ 64.72% |
banner-772x250.png | 122.42KB | 66.86KB | ▼ 45.38% |
images/step_3@2x.png | 47.82KB | 18.38KB | ▼ 61.55% |