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
Install script ran successfully
Server metrics [RAM: ▲1.45MB] [CPU: ▲13.48ms] Passed 4 tests
A check of server-side resources used by Fontier -Font Preview Plugin for Easy Digital Downloads
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.93 ▲1.47 | 51.86 ▲14.51 |
Dashboard /wp-admin | 4.75 ▲1.45 | 60.41 ▲9.10 |
Posts /wp-admin/edit.php | 4.80 ▲1.45 | 64.08 ▲19.55 |
Add New Post /wp-admin/post-new.php | 7.35 ▲1.47 | 94.83 ▲10.74 |
Media Library /wp-admin/upload.php | 4.67 ▲1.45 | 59.45 ▲23.44 |
Fontier Options /wp-admin/options-general.php?page=fontier_options | 4.68 | 45.87 |
Server storage [IO: ▲10.69MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 1,082 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
fontier_options |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Fontier -Font Preview Plugin for Easy Digital Downloads
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲55 | 14.17 ▼0.42 | 1.58 ▼0.02 | 37.43 ▼3.09 |
Dashboard /wp-admin | 2,212 ▲37 | 5.57 ▼0.12 | 82.82 ▼30.85 | 37.57 ▼5.39 |
Posts /wp-admin/edit.php | 2,117 ▲14 | 2.02 ▼0.01 | 38.51 ▲0.53 | 34.50 ▼2.45 |
Add New Post /wp-admin/post-new.php | 1,536 ▲10 | 23.39 ▲0.39 | 727.40 ▲9.39 | 55.23 ▼6.81 |
Media Library /wp-admin/upload.php | 1,417 ▲17 | 4.20 ▲0.04 | 95.70 ▼4.86 | 41.03 ▼2.54 |
Fontier Options /wp-admin/options-general.php?page=fontier_options | 1,205 | 3.72 | 52.90 | 41.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- fontier_options
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
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/fontier/tags/1.0.0/admin/partials/fontier-admin-display.php
- 11× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'CSF_Fields' not found in wp-content/plugins/fontier/tags/1.0.2/admin/partials/fontier-custom-csf.php:12
- > PHP Fatal error
Uncaught Error: Class 'CSF_Fields' not found in wp-content/plugins/fontier/admin/partials/fontier-custom-csf.php:12
- > PHP Fatal error
Uncaught Error: Class 'CSF_Fields' not found in wp-content/plugins/fontier/tags/1.0.3/admin/partials/fontier-custom-csf.php:12
- > PHP Fatal error
Uncaught Error: Class 'CSF_Fields' not found in wp-content/plugins/fontier/tags/1.0.2/public/partials/fontier-custom-csf.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/fontier/tags/1.0.0/public/partials/fontier-public-display.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/fontier/public/partials/fontier-public-display.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/fontier/tags/1.0.2/public/partials/fontier-public-display.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/fontier/tags/1.0.3/public/partials/fontier-public-display.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/fontier/trunk/public/partials/fontier-public-display.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/fontier/tags/1.0.1/public/partials/fontier-public-display.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: elementor addon, addons, wordpress page builder, elementor, elements...
fontier/fontier.php Passed 13 tests
The main PHP script in "Fontier -Font Preview Plugin for Easy Digital Downloads" version 1.0.4 is automatically included on every request by WordPress
55 characters long description:
Fontier is a auto font preview genration plugin for EDD
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
Success! There were no dangerous files found in this plugin62,518 lines of code in 216 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 147 | 6,304 | 3,630 | 27,867 |
JavaScript | 12 | 2,560 | 871 | 10,552 |
CSS | 12 | 617 | 828 | 9,514 |
Sass | 22 | 1,433 | 3 | 8,069 |
PO File | 21 | 3,198 | 3,591 | 6,514 |
SVG | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.60 |
Average class complexity | 23.04 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 152.00 |
Average method complexity | 6.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 418 | |
▷ Abstract classes | 12 | 2.87% |
▷ Concrete classes | 406 | 97.13% |
▷ Final classes | 0 | 0.00% |
Methods | 1,707 | |
▷ Static methods | 260 | 15.23% |
▷ Public methods | 1,668 | 97.72% |
▷ Protected methods | 9 | 0.53% |
▷ Private methods | 30 | 1.76% |
Functions | 156 | |
▷ Named functions | 156 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 12 | |
▷ Global constants | 12 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
8 PNG files occupy 0.05MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/vendors/codestar-framework/assets/images/checkerboard.png | 2.29KB | 2.54KB | 0.00% |
tags/1.0.3/admin/vendors/codestar-framework/assets/images/checkerboard.png | 2.29KB | 2.54KB | 0.00% |
tags/1.0.2/admin/vendors/codestar-framework/assets/images/checkerboard.png | 2.29KB | 2.54KB | 0.00% |
assets/icon-128x128.png | 12.86KB | 3.98KB | ▼ 69.05% |
assets/icon-256x256.png | 26.00KB | 7.68KB | ▼ 70.45% |