Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼4.69ms] Passed 4 tests
Analyzing server-side resources used by Delivery Area with Google Maps
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 40.06 ▼5.08 |
Dashboard /wp-admin | 3.38 ▲0.08 | 53.78 ▼6.11 |
Posts /wp-admin/edit.php | 3.43 ▲0.08 | 48.39 ▼0.87 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 86.52 ▼6.69 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 37.01 ▲0.73 |
Areas List /wp-admin/edit.php?post_type=areamaps | 3.34 | 39.52 |
Add New Area /wp-admin/post-new.php?post_type=areamaps | 3.34 | 38.67 |
Settings /wp-admin/edit.php?post_type=areamaps&page=area_settings | 3.29 | 32.60 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Delivery Area with Google Maps
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,828 ▲67 | 14.42 ▲0.02 | 1.84 ▲0.06 | 43.73 ▼3.99 |
Dashboard /wp-admin | 2,231 ▲54 | 5.54 ▼0.00 | 95.81 ▲2.83 | 41.97 ▼2.48 |
Posts /wp-admin/edit.php | 2,139 ▲39 | 1.97 ▼0.04 | 35.23 ▼2.96 | 34.29 ▼0.05 |
Add New Post /wp-admin/post-new.php | 1,576 ▲50 | 23.26 ▲5.48 | 652.19 ▼60.48 | 58.99 ▲1.29 |
Media Library /wp-admin/upload.php | 1,439 ▲39 | 4.23 ▲0.06 | 100.95 ▼13.35 | 45.28 ▼3.60 |
Areas List /wp-admin/edit.php?post_type=areamaps | 1,116 | 1.93 | 31.49 | 31.59 |
Add New Area /wp-admin/post-new.php?post_type=areamaps | 1,554 | 2.58 | 55.91 | 56.71 |
Settings /wp-admin/edit.php?post_type=areamaps&page=area_settings | 900 | 2.02 | 22.32 | 28.88 |
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
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
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
Almost there! Just fix the following items
- 5× PHP files trigger server errors when accessed directly:
- > PHP Notice
Undefined index: id in wp-content/plugins/delivery-area-with-google-maps/public/assets/js/frontmap_js.php on line 4
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/delivery-area-with-google-maps/admin/layouts/view-admin-maps.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/delivery-area-with-google-maps/admin/layouts/template_options.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function sanitize_key() in wp-content/plugins/delivery-area-with-google-maps/admin/assets/js/areamap_js.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/delivery-area-with-google-maps/includes/class-areamaps-cpt.php:5
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 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
10 plugin tags: shortcode, area, delivery, delivery area, wordpress...
delivery-area-with-google-maps/index.php 85% from 13 tests
The main PHP file in "Delivery Area with Google Maps" ver. 1.3.1 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Requires at least: The required version number must match the one declared in readme.txt ("4.2" instead of "4.9.0")
- Main file name: It is recommended to name the main PHP file as the plugin slug ("delivery-area-with-google-maps.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin836 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 236 | 90 | 744 |
PO File | 1 | 30 | 32 | 92 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 7.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 2.32 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 38 | |
▷ Static methods | 3 | 7.89% |
▷ Public methods | 36 | 94.74% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 5.26% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin