Benchmarks
Plugin footprint 99% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.21MB] [CPU: ▼292.51ms] 50% from 4 tests
This is a short check of server-side resources used by FontMeister - The Font Management Plugin
It is recommended to improve the following
- RAM: The total memory usage must be kept under 10MB (currently 10.18MB on /wp-admin/admin.php?page=fontmeister)
- CPU: Try to keep total CPU usage under 500.00ms (currently 1,904.43ms on /wp-admin/admin.php?page=fontmeister)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.80 ▲0.28 | 56.31 ▲6.27 |
Dashboard /wp-admin | 3.64 ▲0.24 | 34.80 ▲1.66 |
Posts /wp-admin/edit.php | 3.87 ▲0.23 | 38.07 ▼3.69 |
Add New Post /wp-admin/post-new.php | 7.11 ▲0.14 | 95.78 ▼1,170.96 |
Media Library /wp-admin/upload.php | 3.52 ▲0.23 | 27.22 ▲2.95 |
Font Sources /wp-admin/admin.php?page=fontmeister-settings | 3.50 | 24.70 |
Fonts /wp-admin/admin.php?page=fontmeister | 10.18 | 1,904.43 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 23 new files
Database: no new tables, no new options
Browser metrics 75% from 4 tests
FontMeister - The Font Management Plugin: an overview of browser usage
Having an awesome user experience is important, so please improve the following
- Nodes: Limit the number of DOM nodes under 25,000 (currently 49,281 on /wp-admin/admin.php?page=fontmeister)
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,814 ▲60 | 16.10 ▲0.41 | 6.10 ▼0.80 | 2.18 ▼0.16 |
Dashboard /wp-admin | 2,925 ▲64 | 6.22 ▲0.04 | 117.92 ▼14.81 | 172.31 ▲11.82 |
Posts /wp-admin/edit.php | 2,691 ▲19 | 3.13 ▼0.11 | 63.58 ▼3.39 | 137.35 ▼3.64 |
Add New Post /wp-admin/post-new.php | 1,690 ▲29 | 18.48 ▲2.97 | 386.99 ▼28.26 | 181.27 ▲27.71 |
Media Library /wp-admin/upload.php | 1,731 ▲33 | 5.68 ▲0.15 | 135.29 ▼13.99 | 213.96 ▲25.01 |
Font Sources /wp-admin/admin.php?page=fontmeister-settings | 1,160 | 3.10 | 58.00 | 130.92 |
Fonts /wp-admin/admin.php?page=fontmeister | 49,281 | 4.46 | 230.58 | 150.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=fontmeister
- > Warning in wp-admin/includes/class-wp-filesystem-direct.php+66
fopen(wp-content/uploads/fontmeister/fontmeister.css): failed to open stream: No such file or directory
SRP 0% 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 return non-empty strings:
- > /wp-content/plugins/fontmeister/previewer.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/fontmeister/fontmeister.php:24
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots do not have images: #1 (A menu is created for FontMeister with 2 pages - one for setting up your sources and the other for picking the fonts.), #2 (Enter the details for the sources you want to pull fonts from.), #3 (See the list of fonts available from each source in the Fonts section.), #4 (Preview individual fonts. Vary the weights and the base font size to pick the right mix for your site.), #5 (Fine tune your selections by picking a smaller set of variants or subsets, and assign selectors to each font.)
fontmeister/fontmeister.php Passed 13 tests
Analyzing the main PHP file in "FontMeister - The Font Management Plugin" version 1.08
137 characters long description:
FontMeister lets you preview, add and use fonts from popular sources on the web. It supports Google Web Fonts, Typekit and Font Squirrel.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,972 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 124 | 142 | 1,294 |
JavaScript | 3 | 29 | 4 | 506 |
CSS | 2 | 11 | 4 | 153 |
JSON | 1 | 0 | 0 | 19 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.57 |
Average class complexity | 248.00 |
▷ Minimum class complexity | 248.00 |
▷ Maximum class complexity | 248.00 |
Average method complexity | 8.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 44.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 | 32 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 31 | 96.88% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 3.12% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
10 PNG files occupy 0.10MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-4.png | 30.18KB | 15.57KB | ▼ 48.41% |
screenshot-1.png | 2.97KB | 2.29KB | ▼ 23.01% |
include/icons/FontMeister-16.png | 0.62KB | 0.65KB | 0.00% |
screenshot-2.png | 21.82KB | 11.79KB | ▼ 45.94% |
include/icons/FontMeister-48.png | 2.77KB | 2.33KB | ▼ 15.74% |