Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.06MB] [CPU: ▼2.53ms] Passed 4 tests
Analyzing server-side resources used by Typekit Fonts for WordPress
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 40.83 ▼5.11 |
Dashboard /wp-admin | 3.38 ▲0.07 | 50.39 ▼1.71 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 55.31 ▲0.99 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 96.94 ▼4.27 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 39.53 ▲1.58 |
Server storage [IO: ▲0.92MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options |
---|
OM4_Typekit |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Typekit Fonts for WordPress
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,797 ▲36 | 14.23 ▼0.23 | 1.63 ▼0.02 | 42.34 ▼0.27 |
Dashboard /wp-admin | 2,199 ▲19 | 5.65 ▲0.02 | 90.54 ▼6.94 | 42.82 ▲1.25 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.02 ▲0.02 | 40.41 ▲2.49 | 39.05 ▲3.27 |
Add New Post /wp-admin/post-new.php | 1,529 ▼6 | 23.23 ▲5.02 | 671.30 ▲28.37 | 53.52 ▼20.15 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.22 ▲0.03 | 97.05 ▼5.46 | 47.70 ▲3.22 |
Typekit Fonts /wp-admin/typekit-admin.php | 26 | 0.42 | 0.09 | 15.16 |
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
Please fix the following items
- This plugin does not fully uninstall, leaving 7 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- OM4_Typekit
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 Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The SRP test was a success
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
- > GET request to /wp-admin/typekit-admin.php
- > Network (severe)
wp-admin/typekit-admin.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Screenshots: Add images for these screenshots: #1 (Settings/configuration page), #2 (Detailed inline help)
typekit-fonts-for-wordpress/typekit.php 85% from 13 tests
The principal PHP file in "Typekit Fonts for WordPress" v. 1.9.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 170 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("typekit-fonts-for-wordpress.php" instead of "typekit.php")
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
Everything looks great! No dangerous files found in this plugin288 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 67 | 118 | 288 |
PHP code Passed 2 tests
This is a very shot review of 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.25 |
Average class complexity | 14.50 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.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 | 19 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 19 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.89MB with 0.60MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 599.28KB | 215.83KB | ▼ 63.98% |
screenshot-1.png | 312.67KB | 91.65KB | ▼ 70.69% |