Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼6.59ms] Passed 4 tests
Server-side resources used by Advanced Custom Fields: Typography Field
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.43 ▼0.04 | 23.12 ▼16.13 |
Dashboard /wp-admin | 3.35 ▲0.05 | 40.48 ▼4.41 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 44.77 ▼0.82 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 90.26 ▼4.99 |
Media Library /wp-admin/upload.php | 3.28 ▲0.04 | 32.03 ▲2.71 |
ACF Typography Settings /wp-admin/options-general.php?page=acf-typography-field | 3.24 | 29.77 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Advanced Custom Fields: Typography Field
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,469 ▼277 | 14.72 ▲0.34 | 0.47 ▼1.23 | 18.12 ▼20.79 |
Dashboard /wp-admin | 2,207 ▲19 | 4.87 ▼0.05 | 115.58 ▼3.21 | 47.72 ▼1.18 |
Posts /wp-admin/edit.php | 2,090 ▼2 | 1.97 ▼0.02 | 39.06 ▼2.51 | 34.57 ▼5.07 |
Add New Post /wp-admin/post-new.php | 1,536 ▲2 | 22.98 ▼0.18 | 611.28 ▼23.61 | 59.58 ▲4.70 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.28 ▼0.01 | 104.74 ▲2.55 | 45.04 ▲0.40 |
ACF Typography Settings /wp-admin/options-general.php?page=acf-typography-field | 771 | 2.03 | 24.77 | 26.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
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 no errors were found, this is by no means 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
The following issues need your attention
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/acf-typography-field/includes/admin_settings.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/acf-typography-field/includes/functions.php:79
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/acf-typography-field/includes/api-template.php:143
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: These screenshots require images: #1 (Typography Field Settings), #2 (Typography Field Content Editing), #3 (Google Key Field required for Google Fonts)
- Tags: You are using too many tags: 11 tag instead of maximum 10
acf-typography-field/acf-typography.php 92% from 13 tests
This is the main PHP file of "Advanced Custom Fields: Typography Field" version 3.2.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("acf-typography-field.php" instead of "acf-typography.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin1,221 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 406 | 630 | 1,089 |
Markdown | 2 | 26 | 0 | 87 |
JavaScript | 1 | 25 | 0 | 45 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 23.33 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 35.00 |
Average method complexity | 3.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 25 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 13 | 92.86% |
▷ Anonymous functions | 1 | 7.14% |
Constants | 1 | |
▷ Global constants | 1 | 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
3 PNG files occupy 0.12MB with 0.08MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 9.69KB | 3.79KB | ▼ 60.88% |
screenshot-1.png | 82.35KB | 33.68KB | ▼ 59.10% |
screenshot-2.png | 33.13KB | 9.63KB | ▼ 70.94% |