Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▲1.52ms] Passed 4 tests
This is a short check of server-side resources used by POI ACF for WP
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 38.55 ▼1.36 |
Dashboard /wp-admin | 3.34 ▲0.03 | 50.25 ▲2.23 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 49.31 ▲2.04 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 98.74 ▲7.76 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 41.86 ▲3.15 |
Server storage [IO: ▲0.69MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for POI ACF for WP
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.29 ▼0.95 | 6.03 ▲4.28 | 42.68 ▼3.08 |
Dashboard /wp-admin | 2,203 ▲15 | 5.82 ▲0.86 | 122.69 ▲10.77 | 47.70 ▲3.62 |
Posts /wp-admin/edit.php | 2,068 ▼21 | 1.99 ▲0.00 | 37.48 ▼0.26 | 34.35 ▼8.92 |
Add New Post /wp-admin/post-new.php | 1,538 ▲5 | 23.37 ▼0.10 | 672.49 ▲31.66 | 75.95 ▲10.69 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.23 ▲0.03 | 110.54 ▼7.11 | 49.46 ▲5.42 |
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
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 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
Please take a closer look at the following
- 10× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/poi-acf-for-wp/includes/location/products/control.products.php
- > /wp-content/plugins/poi-acf-for-wp/includes/helper/acf-api.helper.php
- > /wp-content/plugins/poi-acf-for-wp/index.php
- > /wp-content/plugins/poi-acf-for-wp/includes/location/_base-location.php
- > /wp-content/plugins/poi-acf-for-wp/includes/location/pages/control.pages.php
- > /wp-content/plugins/poi-acf-for-wp/includes/helper/acf-renderer.helper.php
- > /wp-content/plugins/poi-acf-for-wp/includes/core.class.php
- > /wp-content/plugins/poi-acf-for-wp/includes/location-group/general.location-group.php
- > /wp-content/plugins/poi-acf-for-wp/includes/singleton.class.php
- > /wp-content/plugins/poi-acf-for-wp/includes/location-group/_base-location-group.php
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/poi-acf-for-wp/includes/functions.php:118
- > PHP Notice
Undefined variable: author in wp-content/plugins/poi-acf-for-wp/templates/author.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/poi-acf-for-wp/admin/general-settings-form.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function poi_acf_get_user_fields_data() in wp-content/plugins/poi-acf-for-wp/templates/author.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/poi-acf-for-wp/admin/admin-settings.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% 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
7 plugin tags: advanced custom fields, acf, woocommerce, checkout, my account...
poi-acf-for-wp/index.php 85% from 13 tests
The principal PHP file in "POI ACF for WP" v. 1.0.3 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("poi-acf-for-wp.php" instead of "index.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
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 detected2,096 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 950 | 429 | 1,807 |
JavaScript | 5 | 122 | 67 | 255 |
CSS | 4 | 13 | 6 | 34 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 19.27 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 62.00 |
Average method complexity | 2.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 3 | 27.27% |
▷ Concrete classes | 8 | 72.73% |
▷ Final classes | 0 | 0.00% |
Methods | 115 | |
▷ Static methods | 10 | 8.70% |
▷ Public methods | 57 | 49.57% |
▷ Protected methods | 56 | 48.70% |
▷ Private methods | 2 | 1.74% |
Functions | 29 | |
▷ Named functions | 21 | 72.41% |
▷ Anonymous functions | 8 | 27.59% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin