Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.00MB] [CPU: ▼11.12ms] Passed 4 tests
A check of server-side resources used by ACF: Focal Point
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 36.09 ▼9.66 |
Dashboard /wp-admin | 3.31 ▼0.03 | 49.27 ▼18.13 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 48.51 ▲0.24 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 90.61 ▼16.82 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 36.96 ▲0.13 |
Server storage [IO: ▲1.06MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for ACF: Focal Point
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,906 ▲160 | 13.61 ▼0.61 | 8.84 ▲7.05 | 43.06 ▼0.50 |
Dashboard /wp-admin | 2,203 ▲14 | 5.79 ▲0.86 | 104.85 ▼7.97 | 39.60 ▼6.25 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.99 ▼0.05 | 40.13 ▲0.85 | 34.46 ▼2.48 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 23.10 ▼0.06 | 673.92 ▼25.59 | 54.63 ▼1.08 |
Media Library /wp-admin/upload.php | 1,385 ▼3 | 4.20 ▼0.01 | 99.84 ▼18.14 | 45.55 ▼5.86 |
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
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
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
The following issues need your attention
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/acf-focal-point/acf-focal_point-v5.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/acf-focal-point/acf-focal_point.php:21
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/acf-focal-point/acf-focal_point-v4.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% 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
Attributes that need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Creating a Focal Point Field.), #2 (Selecting a Focal Point for the selected image.), #3 (Desktop width image on 2016 Theme.), #4 (Same image at mobile width.)
acf-focal-point/acf-focal_point.php 92% from 13 tests
The primary PHP file in "ACF: Focal Point" version 1.0.1 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("acf-focal-point.php" instead of "acf-focal_point.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin629 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 206 | 234 | 320 |
JavaScript | 3 | 128 | 100 | 224 |
Markdown | 1 | 43 | 0 | 50 |
CSS | 1 | 2 | 0 | 35 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 4.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.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 | 3 | |
▷ Named functions | 3 | 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 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 1.00MB with 0.69MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 150.55KB | 40.03KB | ▼ 73.41% |
screenshot-4.png | 245.55KB | 62.84KB | ▼ 74.41% |
screenshot-1.png | 33.06KB | 15.83KB | ▼ 52.12% |
screenshot-3.png | 599.64KB | 153.13KB | ▼ 74.46% |