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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼3.48ms] Passed 4 tests
Analyzing server-side resources used by Pojo Custom Fonts
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 45.21 ▼4.18 |
Dashboard /wp-admin | 3.39 ▲0.09 | 52.07 ▼0.92 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 52.67 ▼4.10 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 96.33 ▼4.72 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 41.33 ▲0.97 |
Custom Fonts /wp-admin/edit-tags.php?taxonomy=pojo_custom_fonts | 3.31 | 36.59 |
Server storage [IO: ▲0.47MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Pojo Custom Fonts
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.35 ▼0.04 | 1.73 ▼0.12 | 43.73 ▼1.07 |
Dashboard /wp-admin | 2,198 ▲18 | 5.58 ▼0.09 | 92.39 ▼9.86 | 42.67 ▼0.13 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 2.01 ▼0.03 | 37.92 ▲2.62 | 34.35 ▼3.51 |
Add New Post /wp-admin/post-new.php | 1,528 ▲2 | 23.11 ▼0.04 | 660.61 ▼40.67 | 55.80 ▼5.37 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.15 ▲0.01 | 96.19 ▼19.85 | 45.47 ▼2.14 |
Custom Fonts /wp-admin/edit-tags.php?taxonomy=pojo_custom_fonts | 1,281 | 2.13 | 27.87 | 30.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
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 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Add new custom font), #2 (Select your custom font in Customizer)
pojo-custom-fonts/pojo-custom-fonts.php 85% from 13 tests
"Pojo Custom Fonts" version 1.0.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 223 characters long)
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin347 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 70 | 56 | 281 |
PO File | 1 | 26 | 44 | 66 |
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.19 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 1.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 4 | 100.00% |
Methods | 28 | |
▷ Static methods | 1 | 3.57% |
▷ Public methods | 23 | 82.14% |
▷ Protected methods | 4 | 14.29% |
▷ Private methods | 1 | 3.57% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.45MB with 0.30MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 156.13KB | 53.56KB | ▼ 65.70% |
screenshot-2.png | 302.15KB | 95.37KB | ▼ 68.44% |