Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼3.09ms] Passed 4 tests
An overview of server-side resources used by ACF: Google Font Selector
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 49.14 ▲7.91 |
Dashboard /wp-admin | 3.36 ▲0.06 | 47.02 ▼2.25 |
Posts /wp-admin/edit.php | 3.41 ▲0.06 | 54.36 ▲3.26 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 93.55 ▼14.94 |
Media Library /wp-admin/upload.php | 3.28 ▲0.06 | 35.36 ▲1.57 |
Google Font Selector /wp-admin/options-general.php?page=acfgfs-settings | 3.25 | 31.38 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for ACF: Google Font Selector
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲58 | 13.31 ▼1.09 | 4.56 ▲2.32 | 44.11 ▼2.01 |
Dashboard /wp-admin | 2,218 ▲30 | 5.83 ▲0.96 | 98.20 ▼2.40 | 38.64 ▼4.53 |
Posts /wp-admin/edit.php | 2,101 ▲12 | 1.99 ▼0.03 | 39.60 ▼0.56 | 36.09 ▼0.60 |
Add New Post /wp-admin/post-new.php | 1,542 ▲9 | 23.32 ▲0.17 | 576.68 ▼68.43 | 50.80 ▲4.12 |
Media Library /wp-admin/upload.php | 1,406 ▲18 | 4.20 ▲0.04 | 96.15 ▲1.34 | 43.79 ▼0.04 |
Google Font Selector /wp-admin/options-general.php?page=acfgfs-settings | 794 | 2.03 | 38.53 | 25.18 |
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
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- widget_recent-comments
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)
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/acf-google-font-selector-field/acf-google_font_selector-v4.php:22
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/acf-google-font-selector-field/acf-google_font_selector-v5.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/acf-google-font-selector-field/acf-google_font_selector.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
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: google, acf, fonts
acf-google-font-selector-field/acf-google_font_selector.php 92% from 13 tests
Analyzing the main PHP file in "ACF: Google Font Selector" version 3.0.1
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("acf-google-font-selector-field.php" instead of "acf-google_font_selector.php")
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
No dangerous file extensions were detected686 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 163 | 410 | 471 |
PO File | 2 | 28 | 44 | 100 |
JavaScript | 1 | 31 | 28 | 73 |
CSS | 1 | 8 | 0 | 42 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 19 | |
▷ Named functions | 19 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
PNG images were not found in this plugin