Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.05MB] [CPU: ▼139.21ms] Passed 4 tests
This is a short check of server-side resources used by Simple Fields Map extension
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.88 ▲0.16 | 33.48 ▲12.08 |
Dashboard /wp-admin | 3.10 ▲0.05 | 45.37 ▼1.91 |
Posts /wp-admin/edit.php | 3.16 ▲0.05 | 44.74 ▼3.10 |
Add New Post /wp-admin/post-new.php | 5.47 ▲0.04 | 91.32 ▼553.64 |
Media Library /wp-admin/upload.php | 3.05 ▲0.05 | 28.55 ▲1.82 |
Server storage [IO: ▲0.50MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Simple Fields Map extension
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲83 | 15.90 ▲0.37 | 8.69 ▼1.99 | 44.55 ▼9.06 |
Dashboard /wp-admin | 2,989 ▲58 | 5.94 ▲0.01 | 136.90 ▼2.56 | 112.62 ▼3.09 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.72 ▼0.00 | 65.39 ▼1.22 | 87.86 ▼9.06 |
Add New Post /wp-admin/post-new.php | 1,683 ▲185 | 18.69 ▼0.20 | 357.76 ▼29.95 | 104.14 ▼8.29 |
Media Library /wp-admin/upload.php | 1,810 ▲3 | 5.02 ▼0.01 | 146.30 ▼4.62 | 117.71 ▼14.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables
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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-fields-map-extension/simple-fields-map-extension.php:401
- > 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 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Tags: You are using too many tags: 11 tag instead of maximum 10
- Screenshots: These screenshots require images: #1 (The field with its options), #2 (The post edit screen, including the currently selected coordinates and a search result found), #3 (Example of the values that are being stored for each saved location/field (and the function used to get them))
simple-fields-map-extension/simple-fields-map-extension.php Passed 13 tests
This is the main PHP file of "Simple Fields Map extension" version 1.3.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
41 characters long description:
Adds a Google Maps-field to Simple Fields
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin501 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 62 | 96 | 244 |
JavaScript | 1 | 67 | 46 | 207 |
CSS | 1 | 10 | 2 | 39 |
Markdown | 1 | 7 | 0 | 11 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.58 |
Average class complexity | 33.00 |
▷ Minimum class complexity | 33.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 11.67 |
▷ Minimum method complexity | 9.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.46MB with 0.32MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 54.44KB | 16.98KB | ▼ 68.80% |
screenshot-2.png | 402.21KB | 153.52KB | ▼ 61.83% |
screenshot-3.png | 18.86KB | 4.80KB | ▼ 74.56% |