Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▼1.23MB] [CPU: ▼47.49ms] Passed 4 tests
This is a short check of server-side resources used by WP font-face
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.74 ▼0.72 | 18.19 ▼26.25 |
Dashboard /wp-admin | 2.79 ▼0.52 | 20.24 ▼35.19 |
Posts /wp-admin/edit.php | 2.79 ▼0.57 | 22.21 ▼35.17 |
Add New Post /wp-admin/post-new.php | 2.79 ▼3.10 | 19.35 ▼93.35 |
Media Library /wp-admin/upload.php | 2.79 ▼0.44 | 23.73 ▼16.33 |
FontFace /wp-admin/options-general.php?page=wp-font-face/fontface.plugin.php | 2.79 | 20.22 |
Server storage [IO: ▲0.43MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 12 new options
New WordPress options |
---|
fontface_font_list_count |
fontface_font_list |
fontface-load-in-admin |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
fontface-load-css-in-tinymce |
widget_recent-comments |
fontface-generate-css-class |
fontface-load-css-style-in-tinymce |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP font-face
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲44 | 14.23 ▼0.54 | 2.00 ▲0.37 | 47.73 ▲5.75 |
Dashboard /wp-admin | 2,202 ▲28 | 5.53 ▼0.10 | 95.65 ▲5.31 | 39.40 ▼6.19 |
Posts /wp-admin/edit.php | 2,113 ▲13 | 2.02 ▲0.02 | 35.54 ▼1.52 | 34.33 ▲2.56 |
Add New Post /wp-admin/post-new.php | 1,539 ▲11 | 23.11 ▼0.03 | 637.65 ▼98.10 | 50.57 ▼7.05 |
Media Library /wp-admin/upload.php | 1,413 ▲13 | 4.23 ▼0.03 | 96.31 ▼9.26 | 44.90 ▼1.03 |
FontFace /wp-admin/options-general.php?page=wp-font-face/fontface.plugin.php | 866 | 1.99 | 22.48 | 26.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/wp-font-face/fontface.plugin.php+151
Undefined variable: update_css
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wp-font-face/fontface.plugin.php
- > Notice in wp-content/plugins/wp-font-face/fontface.plugin.php+164
Undefined variable: update_css
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
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-font-face/fontface.plugin.php:39
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Screenshots: A description for screenshot #4 is missing in wp-font-face/assets to your readme.txt
wp-font-face/fontface.plugin.php 92% from 13 tests
The main PHP script in "WP font-face" version 1.1 is automatically included on every request by WordPress
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("wp-font-face.php" instead of "fontface.plugin.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
Everything looks great! No dangerous files found in this plugin1,317 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
HTML | 1 | 121 | 0 | 488 |
CSS | 5 | 93 | 22 | 430 |
SVG | 1 | 0 | 0 | 239 |
PHP | 1 | 60 | 67 | 153 |
JavaScript | 1 | 0 | 0 | 7 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 25.00 |
▷ Minimum class complexity | 25.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.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 | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 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 | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.08MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
fonts/daniel/specimen_files/daniel-cleartype.png | 84.32KB | 53.00KB | ▼ 37.14% |