Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲1.48MB] [CPU: ▲5.21ms] Passed 4 tests
Server-side resources used by Fontsampler
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.98 ▲1.51 | 54.56 ▲17.54 |
Dashboard /wp-admin | 4.81 ▲1.51 | 59.38 ▲7.62 |
Posts /wp-admin/edit.php | 4.86 ▲1.51 | 65.63 ▲8.77 |
Add New Post /wp-admin/post-new.php | 7.33 ▲1.45 | 99.47 ▼4.03 |
Media Library /wp-admin/upload.php | 4.67 ▲1.44 | 50.92 ▲8.46 |
Settings /wp-admin/admin.php?page=fontsampler-settings | 4.55 | 41.03 |
New Fontsampler /wp-admin/admin.php?page=fontsampler-new | 4.55 | 40.26 |
All Fontsamplers /wp-admin/admin.php?page=fontsampler | 4.55 | 38.05 |
Server storage [IO: ▲3.64MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 458 new files
Database: 4 new tables, 10 new options
New tables |
---|
wp_fontsampler_settings |
wp_fontsampler_sets |
wp_fontsampler_sets_x_fonts |
wp_fontsampler_fonts |
New WordPress options |
---|
theysaidso_admin_options |
fontsampler_hide_legacy_formats |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
fontsampler_proxy_urls |
widget_recent-posts |
fontsampler_db_version |
fontsampler_last_changelog |
Browser metrics Passed 4 tests
Checking browser requirements for Fontsampler
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,839 ▲93 | 13.21 ▼1.16 | 1.65 ▼0.29 | 41.54 ▼4.00 |
Dashboard /wp-admin | 2,245 ▲57 | 4.88 ▼1.20 | 109.02 ▼1.08 | 37.03 ▼7.44 |
Posts /wp-admin/edit.php | 2,131 ▲39 | 2.06 ▲0.04 | 39.89 ▼7.50 | 35.99 ▼3.67 |
Add New Post /wp-admin/post-new.php | 1,547 ▲12 | 17.72 ▼5.75 | 696.49 ▼0.57 | 52.43 ▼5.36 |
Media Library /wp-admin/upload.php | 1,430 ▲42 | 4.25 ▲0.14 | 97.50 ▼18.98 | 42.97 ▼5.78 |
Settings /wp-admin/admin.php?page=fontsampler-settings | 4,595 | 6.30 | 171.56 | 127.75 |
New Fontsampler /wp-admin/admin.php?page=fontsampler-new | 5,553 | 5.40 | 164.68 | 139.37 |
All Fontsamplers /wp-admin/admin.php?page=fontsampler | 1,112 | 3.83 | 56.04 | 67.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- fontsampler_proxy_urls
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
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
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=fontsampler
- > User notice in wp-includes/functions.php+5905
Function WP_Scripts::localize was called incorrectly. The $l10n parameter must be an array. To pass arbitrary data to scripts, use the wp_add_inline_script() function instead. Please see Debugging in WordPress for more information. (This message was added in version 5.7.0.)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=fontsampler-settings
- > Notice in wp-content/plugins/fontsampler/vendor/oyejorge/less.php/lib/Less/Parser.php+1927
Trying to access array offset on value of type null
SRP 0% from 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 following issues need your attention
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/fontsampler/fontsampler.php
- > /wp-content/plugins/fontsampler/includes/interface.php
- 196× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\\Expression\\TestExpression' not found in wp-content/plugins/fontsampler/vendor/twig/twig/src/Node/Expression/Test/EvenTest.php:24
- > PHP Fatal error
Uncaught Error: Class 'Less_Tree' not found in wp-content/plugins/fontsampler/vendor/oyejorge/less.php/lib/Less/Tree/Url.php:9
- > PHP Fatal error
Uncaught Error: Class 'Twig\\TokenParser\\AbstractTokenParser' not found in wp-content/plugins/fontsampler/vendor/twig/twig/src/TokenParser/AutoEscapeTokenParser.php:25
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\\Expression\\AbstractExpression' not found in wp-content/plugins/fontsampler/vendor/twig/twig/src/Node/CheckToStringNode.php:27
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\ode' not found in wp-content/plugins/fontsampler/vendor/twig/twig/src/Node/MacroNode.php:22
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\ode' not found in wp-content/plugins/fontsampler/vendor/twig/twig/src/Node/CheckSecurityNode.php:19
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\ode' not found in wp-content/plugins/fontsampler/vendor/twig/twig/src/Node/TextNode.php:22
- > PHP Fatal error
Uncaught Error: Class 'Twig\\Error\\Error' not found in wp-content/plugins/fontsampler/vendor/twig/twig/src/Error/RuntimeError.php:20
- > PHP Fatal error
Uncaught Error: Class 'Less_Tree' not found in wp-content/plugins/fontsampler/vendor/oyejorge/less.php/lib/Less/Tree/Element.php:9
- > PHP Fatal error
Uncaught Error: Class 'Less_Tree' not found in wp-content/plugins/fontsampler/vendor/oyejorge/less.php/lib/Less/Tree/Javascript.php:9
- > 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 on the user side
Optimizations
Plugin configuration 93% 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
Please fix the following attributes:
- Plugin Name: Please specify the plugin name on the first line (
=== fontsampler ===
)
fontsampler/fontsampler.php 92% from 13 tests
The primary PHP file in "Fontsampler" version 0.4.14 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 150 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin51,343 lines of code in 371 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 274 | 5,732 | 6,740 | 43,883 |
LESS | 15 | 322 | 86 | 1,803 |
Twig | 37 | 134 | 12 | 1,519 |
CSS | 4 | 5 | 6 | 1,434 |
JavaScript | 13 | 344 | 447 | 1,184 |
JSON | 6 | 0 | 0 | 528 |
Markdown | 5 | 113 | 0 | 293 |
HTML | 1 | 52 | 1 | 255 |
SVG | 8 | 0 | 10 | 183 |
YAML | 2 | 45 | 33 | 151 |
PO File | 4 | 40 | 52 | 56 |
Bourne Shell | 1 | 6 | 1 | 43 |
reStructuredText | 1 | 8 | 5 | 11 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for 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.47 |
Average class complexity | 14.79 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 441.00 |
Average method complexity | 3.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 44.00 |
Code structure | ||
---|---|---|
Namespaces | 26 | |
Interfaces | 11 | |
Traits | 0 | |
Classes | 238 | |
▷ Abstract classes | 12 | 5.04% |
▷ Concrete classes | 226 | 94.96% |
▷ Final classes | 58 | 25.66% |
Methods | 1,570 | |
▷ Static methods | 128 | 8.15% |
▷ Public methods | 1,323 | 84.27% |
▷ Protected methods | 68 | 4.33% |
▷ Private methods | 179 | 11.40% |
Functions | 147 | |
▷ Named functions | 119 | 80.95% |
▷ Anonymous functions | 28 | 19.05% |
Constants | 67 | |
▷ Global constants | 7 | 10.45% |
▷ Class constants | 60 | 89.55% |
▷ Public constants | 60 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
supporter-logos/james-puckett-logo.png | 6.92KB | 3.91KB | ▼ 43.46% |
supporter-logos/liberty-type-logo.png | 30.05KB | 5.60KB | ▼ 81.36% |
supporter-logos/paulo-goode-logo.png | 24.33KB | 24.34KB | 0.00% |
supporter-logos/canada-type-logo.png | 4.01KB | 1.44KB | ▼ 64.12% |
supporter-logos/underscore-type-logo.png | 6.36KB | 3.11KB | ▼ 51.14% |