Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼140.17ms] Passed 4 tests
Server-side resources used by Sumedia GFont
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▲0.03 | 34.99 ▲1.75 |
Dashboard /wp-admin | 3.11 ▲0.06 | 48.47 ▼0.30 |
Posts /wp-admin/edit.php | 3.23 ▲0.12 | 44.40 ▲2.31 |
Add New Post /wp-admin/post-new.php | 5.47 ▲0.04 | 91.18 ▼564.12 |
Media Library /wp-admin/upload.php | 3.06 ▲0.06 | 32.68 ▲1.99 |
GFont /wp-admin/plugins.php?page=sumedia-gfont | 3.07 | 29.44 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 40 new files
Database: 1 new table, 1 new option
New tables |
---|
wp_sumedia_gfont_fonts |
New WordPress options |
---|
sumedia_gfont_version |
Browser metrics Passed 4 tests
Sumedia GFont: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,711 ▲115 | 16.07 ▲0.10 | 12.00 ▼0.33 | 48.78 ▲2.34 |
Dashboard /wp-admin | 2,971 ▲40 | 5.90 ▼0.08 | 141.73 ▼18.18 | 131.14 ▲16.98 |
Posts /wp-admin/edit.php | 2,762 ▲23 | 2.70 ▼0.01 | 68.38 ▼0.04 | 88.20 ▼5.67 |
Add New Post /wp-admin/post-new.php | 1,506 ▼98 | 18.50 ▼0.34 | 381.69 ▼0.98 | 111.33 ▼2.98 |
Media Library /wp-admin/upload.php | 1,830 ▲8 | 5.02 ▲0.00 | 140.47 ▲6.19 | 136.15 ▲19.87 |
GFont /wp-admin/plugins.php?page=sumedia-gfont | 1,284 | 2.09 | 58.97 | 79.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_sumedia_gfont_fonts
- This plugin does not fully uninstall, leaving 1 option in the database
- sumedia_gfont_version
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
Please fix the following items
- 10× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Sumedia\\GFont\\Base\\View' not found in wp-content/plugins/sumedia-gfont/src/Sumedia/GFont/Admin/View/NewFont.php:8
- > PHP Fatal error
Uncaught Error: Class 'Sumedia\\GFont\\Base\\Form' not found in wp-content/plugins/sumedia-gfont/src/Sumedia/GFont/Admin/Form/NewFont.php:5
- > PHP Fatal error
Uncaught Error: Class 'Sumedia\\GFont\\Base\\Repository' not found in wp-content/plugins/sumedia-gfont/src/Sumedia/GFont/Repository/Fonts.php:7
- > PHP Fatal error
Uncaught Error: Class 'Sumedia\\GFont\\Base\\View' not found in wp-content/plugins/sumedia-gfont/src/Sumedia/GFont/Admin/View/Fontlist.php:8
- > PHP Fatal error
Uncaught Error: Class 'Sumedia\\GFont\\Base\\View' not found in wp-content/plugins/sumedia-gfont/src/Sumedia/GFont/Admin/View/Overview.php:9
- > PHP Fatal error
Uncaught Error: Class 'Sumedia\\GFont\\Base\\View' not found in wp-content/plugins/sumedia-gfont/src/Sumedia/GFont/Admin/View/Menu.php:8
- > PHP Fatal error
Uncaught Error: Class 'Sumedia\\GFont\\Base\\View' not found in wp-content/plugins/sumedia-gfont/src/Sumedia/GFont/Admin/View/Heading.php:8
- > PHP Fatal error
Uncaught Error: Class 'Sumedia\\GFont\\Base\\Controller' not found in wp-content/plugins/sumedia-gfont/src/Sumedia/GFont/Admin/Controller/Delete.php:10
- > PHP Fatal error
Uncaught Error: Class 'Sumedia\\GFont\\Base\\Controller' not found in wp-content/plugins/sumedia-gfont/src/Sumedia/GFont/Admin/Controller/NewFont.php:5
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/sumedia-gfont/src/Sumedia/GFont/Admin/Table/Fontlist.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: data privacy, fonts, google
sumedia-gfont/sumedia-gfont.php 92% from 13 tests
"Sumedia GFont" version 0.3.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Requires at least: Please use periods and digits for the required version (ex. "7.0" instead of "5.3 (nothing else tested yet)")
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
There were no executable files found in this plugin1,493 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 29 | 262 | 362 | 1,184 |
CSS | 1 | 28 | 0 | 140 |
PO File | 1 | 53 | 79 | 136 |
Markdown | 1 | 9 | 0 | 20 |
JSON | 1 | 0 | 0 | 13 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 5.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 2.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 22 | |
▷ Abstract classes | 3 | 13.64% |
▷ Concrete classes | 19 | 86.36% |
▷ Final classes | 1 | 5.26% |
Methods | 106 | |
▷ Static methods | 6 | 5.66% |
▷ Public methods | 95 | 89.62% |
▷ Protected methods | 11 | 10.38% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 9 | |
▷ Global constants | 4 | 44.44% |
▷ Class constants | 5 | 55.56% |
▷ Public constants | 5 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.15MB with 0.09MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/font-screen.png | 34.80KB | 13.71KB | ▼ 60.61% |
assets/images/wp-n-suma.png | 55.99KB | 19.83KB | ▼ 64.59% |
assets/images/css-class-howto.png | 58.44KB | 22.94KB | ▼ 60.74% |