Benchmarks
Plugin footprint Passed 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.02MB] [CPU: ▼290.94ms] Passed 4 tests
Server-side resources used by Advanced Custom Fields: Multiple Coordinates
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.01 | 57.02 ▲6.91 |
Dashboard /wp-admin | 3.41 ▲0.01 | 30.84 ▼4.87 |
Posts /wp-admin/edit.php | 3.65 ▲0.01 | 53.97 ▲0.46 |
Add New Post /wp-admin/post-new.php | 6.88 ▼0.09 | 94.08 ▼1,166.24 |
Media Library /wp-admin/upload.php | 3.30 ▲0.00 | 40.82 ▲14.39 |
Server storage [IO: ▲0.57MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Advanced Custom Fields: Multiple Coordinates
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,795 ▲73 | 16.14 ▲0.49 | 6.40 ▲0.05 | 2.60 ▲0.15 |
Dashboard /wp-admin | 2,895 ▲38 | 6.09 ▼0.06 | 118.47 ▼0.76 | 161.03 ▼10.60 |
Posts /wp-admin/edit.php | 2,691 ▼0 | 3.24 ▲0.00 | 79.11 ▲8.49 | 144.30 ▼9.00 |
Add New Post /wp-admin/post-new.php | 1,752 ▲86 | 21.48 ▲0.70 | 462.23 ▲2.70 | 193.11 ▲28.97 |
Media Library /wp-admin/upload.php | 1,698 ▲3 | 5.54 ▲0.02 | 145.30 ▼1.82 | 188.53 ▲2.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/advanced-custom-fields-multiple-coordinates/fields.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-custom-fields-multiple-coordinates/acf-multiple-coordinates.php:37
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% 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
Please fix the following attributes:
- Screenshots: Screenshot #1 (The plugin in action in the backend.) image not found
- Tags: There are too many tags (14 tag instead of maximum 10)
advanced-custom-fields-multiple-coordinates/acf-multiple-coordinates.php 92% from 13 tests
The primary PHP file in "Advanced Custom Fields: Multiple Coordinates" version 1.0.2 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("advanced-custom-fields-multiple-coordinates.php" instead of "acf-multiple-coordinates.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected302 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 48 | 107 | 201 |
PHP | 2 | 23 | 90 | 81 |
CSS | 1 | 6 | 17 | 20 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.04 |
Average class complexity | 1.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.51MB with 0.32MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 522.25KB | 197.24KB | ▼ 62.23% |