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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼7.89ms] Passed 4 tests
Analyzing server-side resources used by AS gMap Light
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 39.13 ▲1.62 |
Dashboard /wp-admin | 3.33 ▼0.02 | 50.60 ▼13.81 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 45.26 ▼1.52 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 87.09 ▼17.83 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 36.68 ▲2.24 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_as_gmap_image |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for AS gMap Light
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,791 ▲45 | 14.45 ▲0.24 | 1.79 ▲0.28 | 45.71 ▲4.37 |
Dashboard /wp-admin | 2,200 ▲23 | 5.62 ▼0.04 | 96.17 ▲8.30 | 41.36 ▲0.21 |
Posts /wp-admin/edit.php | 2,102 ▲2 | 2.02 ▼0.01 | 34.61 ▼0.71 | 33.94 ▼2.11 |
Add New Post /wp-admin/post-new.php | 1,530 ▲4 | 22.91 ▼0.13 | 675.76 ▼1.60 | 55.89 ▼2.68 |
Media Library /wp-admin/upload.php | 1,396 ▼4 | 4.16 ▼0.06 | 96.31 ▼14.68 | 45.56 ▼0.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- theysaidso_admin_options
- widget_as_gmap_image
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- widget_recent-posts
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
Good news, no errors were detected
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/as-gmap-light/includes/view/widget.php
- 21× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/as-gmap-light/includes/shortcode.php:28
- > PHP Notice
Undefined variable: instance in wp-content/plugins/as-gmap-light/includes/view/widget.php on line 1
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/as-gmap-light/includes/view/widget.php on line 2
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/as-gmap-light/includes/view/widget.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/as-gmap-light/includes/shortcode.php:28
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/as-gmap-light/includes/view/admin.php:2
- > PHP Notice
Undefined variable: instance in wp-content/plugins/as-gmap-light/includes/view/widget.php on line 1
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/as-gmap-light/includes/view/widget.php on line 2
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/as-gmap-light/includes/view/widget.php on line 1
- > PHP Notice
Undefined variable: instance in wp-content/plugins/as-gmap-light/includes/view/widget.php on line 1
- > 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 errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== as-gmap-light ===
)
as-gmap-light/main-functions.php 92% from 13 tests
"AS gMap Light" version 1.3.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("as-gmap-light.php" instead of "main-functions.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin186 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 39 | 46 | 111 |
JavaScript | 1 | 2 | 0 | 53 |
CSS | 1 | 1 | 0 | 22 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.07 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 6 | |
▷ Named functions | 6 | 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 Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin