Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.17MB] [CPU: ▼4.64ms] Passed 4 tests
A check of server-side resources used by Wbcom Designs - Custom Font Uploader
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.18 | 39.56 ▼0.27 |
Dashboard /wp-admin | 3.49 ▲0.14 | 46.58 ▼13.94 |
Posts /wp-admin/edit.php | 3.60 ▲0.24 | 50.66 ▲6.39 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.20 | 83.03 ▼1.53 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 35.57 ▼2.82 |
General /wp-admin/admin.php?page=wbcomplugins | 3.38 | 33.67 |
Font Uploader /wp-admin/admin.php?page=custom-font-uploader-settings | 3.38 | 32.51 |
Support /wp-admin/admin.php?page=wbcom-support-page | 3.37 | 30.23 |
Our Themes /wp-admin/admin.php?page=wbcom-themes-page | 3.35 | 32.88 |
Our Plugins /wp-admin/admin.php?page=wbcom-plugins-page | 3.56 | 31.24 |
Server storage [IO: ▲3.09MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 67 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Wbcom Designs - Custom Font Uploader
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,860 ▲99 | 14.39 ▲0.17 | 2.08 ▲0.43 | 40.96 ▼4.22 |
Dashboard /wp-admin | 2,245 ▲78 | 5.66 ▼0.05 | 82.51 ▼26.65 | 37.99 ▼4.60 |
Posts /wp-admin/edit.php | 2,146 ▲46 | 2.04 ▲0.04 | 38.55 ▲1.19 | 35.06 ▼1.18 |
Add New Post /wp-admin/post-new.php | 1,566 ▼114 | 23.03 ▲0.83 | 657.24 ▼5.96 | 65.47 ▲9.38 |
Media Library /wp-admin/upload.php | 1,444 ▲41 | 4.28 ▲0.11 | 97.93 ▼3.46 | 40.14 ▼4.28 |
General /wp-admin/admin.php?page=wbcomplugins | 1,009 | 2.04 | 25.97 | 44.56 |
Font Uploader /wp-admin/admin.php?page=custom-font-uploader-settings | 1,017 | 1.82 | 26.45 | 39.16 |
Support /wp-admin/admin.php?page=wbcom-support-page | 953 | 2.05 | 23.46 | 34.92 |
Our Themes /wp-admin/admin.php?page=wbcom-themes-page | 799 | 2.03 | 24.80 | 23.32 |
Our Plugins /wp-admin/admin.php?page=wbcom-plugins-page | 1,963 | 2.04 | 25.63 | 73.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- > GET request to /wp-admin/admin.php?page=wbcom-themes-page
- > Warning in wp-content/plugins/custom-font-uploader/admin/wbcom/wbcom-admin-settings.php+220
include(templates/wbcom-themes-page.php): failed to open stream: No such file or directory
- > GET request to /wp-admin/admin.php?page=wbcom-themes-page
- > Warning in wp-content/plugins/custom-font-uploader/admin/wbcom/wbcom-admin-settings.php+220
include(): Failed opening 'templates/wbcom-themes-page.php' for inclusion (include_path='.:/usr/share/php')
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/custom-font-uploader/admin/wbcom/templates/wbcom-support-page.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/custom-font-uploader/admin/wbcom/templates/wbcom-license-page.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/custom-font-uploader/admin/class-cfup-admin-feedback.php:311
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-font-uploader/inc/cfup-functions.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/custom-font-uploader/admin/cfup-customfont-settings.php:74
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/custom-font-uploader/admin/wbcom/templates/wbcom-plugins-page.php:5
- > 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 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (The screenshot shows the setting page for custom font and uploaded some example fonts with delete option and corresponds to screenshot-2.(png|jpg|jpeg|gif).), #2 (The screenshot shows the setting page for google fonts with preview option and some example font listing and corresponds to screenshot-3.(png|jpg|jpeg|gif).), #3 (Enabling Specific Google Font), #4 (Uploading additional custom fonts), #5 (How to use enabled fonts using inspect element, you can add the same inside custom css.)
custom-font-uploader/custom-font-uploader.php 85% from 13 tests
The principal PHP file in "Wbcom Designs - Custom Font Uploader" v. 2.3.4 is loaded by WordPress automatically on each request
It is important to fix the following:
- 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
- Description: Please don't use more than 140 characters for the plugin description (currently 146 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected12,692 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 3 | 1 | 0 | 5,224 |
JavaScript | 4 | 596 | 422 | 3,445 |
CSS | 3 | 426 | 64 | 2,235 |
PHP | 14 | 178 | 471 | 1,788 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 17.75 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 2.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 34 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 34 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 15 | |
▷ Named functions | 15 | 100.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
PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.18MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/css/select2.png | 0.60KB | 0.99KB | 0.00% |
admin/wbcom/assets/imgs/wbcom-offer-notice.png | 67.64KB | 32.40KB | ▼ 52.11% |
screenshot-2.png | 47.60KB | 25.72KB | ▼ 45.97% |
screenshot-1.png | 30.69KB | 16.70KB | ▼ 45.58% |
admin/assets/images/custom_font_uploder.png | 30.14KB | 7.64KB | ▼ 74.66% |