Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/fontsy/classes/class-premium-fontSettings.php+653
Trying to get property 'data' of non-object
Server metrics [RAM: ▼1.09MB] [CPU: ▲236.55ms] 75% from 4 tests
This is a short check of server-side resources used by Fontsy
Please have a look at the following items
- Extra CPU: Try to keep extra CPU usage under 200.00ms (currently 236.55ms on /wp-admin/upload.php)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.29 ▼0.23 | 517.73 ▲467.59 |
Dashboard /wp-admin | 3.30 ▼0.11 | 672.07 ▲635.42 |
Posts /wp-admin/edit.php | 3.30 ▼0.34 | 597.78 ▲560.52 |
Add New Post /wp-admin/post-new.php | 3.30 ▼3.67 | 533.40 ▼717.34 |
Media Library /wp-admin/upload.php | 3.30 ▼0.00 | 686.49 ▲656.43 |
Server storage [IO: ▲1.87MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 228 new files
Database: 2 new tables, 1 new option
New tables |
---|
wp_fontsy_custom_fonts |
wp_fontsy_html_tags |
New WordPress options |
---|
fontsy_europe_countries |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Fontsy
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,820 ▲76 | 15.88 ▲0.23 | 5.95 ▼0.15 | 2.96 ▲0.73 |
Dashboard /wp-admin | 2,914 ▲53 | 6.16 ▼0.12 | 120.01 ▼16.47 | 158.91 ▼0.25 |
Posts /wp-admin/edit.php | 2,710 ▲19 | 2.98 ▼0.25 | 60.21 ▼3.99 | 140.69 ▼5.96 |
Add New Post /wp-admin/post-new.php | 1,950 ▲285 | 20.76 ▼0.22 | 423.14 ▼22.39 | 146.01 ▼7.31 |
Media Library /wp-admin/upload.php | 1,721 ▲26 | 5.44 ▼0.04 | 146.99 ▲4.66 | 175.04 ▼15.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/fontsy/classes/class-premium-fontSettings.php+653
Trying to get property 'data' of non-object
- The uninstall procedure has failed, leaving 1 option in the database
- fontsy_europe_countries
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 0% 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
Please fix the following items
- 5× PHP files output text when accessed directly:
- > /wp-content/plugins/fontsy/assets/stripe/build.php
- > /wp-content/plugins/fontsy/assets/stripe/update_certs.php
- > /wp-content/plugins/fontsy/assets/stripe/examples/oauth.php
- > /wp-content/plugins/fontsy/assets/stripe/tests/bootstrap.no_autoload.php
- > /wp-content/plugins/fontsy/assets/stripe/tests/bootstrap.php
- 154× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Error\\Base' not found in wp-content/plugins/fontsy/assets/stripe/lib/Error/Authentication.php:5
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/fontsy/assets/stripe/lib/PaymentIntent.php:41
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\TestCase' not found in wp-content/plugins/fontsy/assets/stripe/tests/Stripe/HttpClient/CurlClientTest.php:7
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\TestCase' not found in wp-content/plugins/fontsy/assets/stripe/tests/Stripe/Issuing/CardTest.php:5
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/fontsy/assets/stripe/lib/File.php:21
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\TestCase' not found in wp-content/plugins/fontsy/assets/stripe/tests/Stripe/RefundTest.php:5
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/fontsy/assets/stripe/lib/UsageRecord.php:17
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\TestCase' not found in wp-content/plugins/fontsy/assets/stripe/tests/Stripe/StripeTest.php:5
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\TestCase' not found in wp-content/plugins/fontsy/assets/stripe/tests/Stripe/FileTest.php:5
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\TestCase' not found in wp-content/plugins/fontsy/assets/stripe/tests/Stripe/FileUploadCreationTest.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: fonts, fontsy, font install, font management
fontsy/fontsy.php 92% from 13 tests
The main PHP script in "Fontsy" version 1.8.6 is automatically included on every request by WordPress
You should first fix the following items:
- Description: Please keep the plugin description shorter than 140 characters (currently 154 characters long)
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Please make sure to remedy the following
- You should never include executable (binary) or otherwise dangerous files in your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/fontsy/assets/stripe/data/ca-certificates.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 187 | 1,779 | 3,168 | 10,358 |
CSS | 4 | 210 | 32 | 2,370 |
JavaScript | 11 | 387 | 331 | 1,682 |
Markdown | 4 | 266 | 0 | 604 |
JSON | 1 | 0 | 0 | 36 |
YAML | 2 | 8 | 3 | 36 |
XML | 2 | 0 | 0 | 30 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 3.93 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 90.00 |
Average method complexity | 1.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 12 | |
Interfaces | 2 | |
Traits | 7 | |
Classes | 168 | |
▷ Abstract classes | 7 | 4.17% |
▷ Concrete classes | 161 | 95.83% |
▷ Final classes | 0 | 0.00% |
Methods | 739 | |
▷ Static methods | 115 | 15.56% |
▷ Public methods | 696 | 94.18% |
▷ Protected methods | 17 | 2.30% |
▷ Private methods | 26 | 3.52% |
Functions | 7 | |
▷ Named functions | 1 | 14.29% |
▷ Anonymous functions | 6 | 85.71% |
Constants | 326 | |
▷ Global constants | 18 | 5.52% |
▷ Class constants | 308 | 94.48% |
▷ Public constants | 308 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
7 PNG files occupy 0.22MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/search-icon.png | 3.07KB | 0.61KB | ▼ 80.19% |
assets/images/settings.png | 2.21KB | 1.78KB | ▼ 19.27% |
assets/images/fontsy_logo.png | 101.03KB | 53.83KB | ▼ 46.71% |
assets/images/Fontsy_White_Circle.png | 101.69KB | 34.28KB | ▼ 66.29% |
assets/css/drop-arrow.png | 15.10KB | 0.31KB | ▼ 97.96% |