Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.24MB] [CPU: ▼4.07ms] Passed 4 tests
A check of server-side resources used by VenoMaps - geo map and custom markers
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.71 ▲0.25 | 38.70 ▲2.41 |
Dashboard /wp-admin | 3.54 ▲0.24 | 43.36 ▼3.85 |
Posts /wp-admin/edit.php | 3.66 ▲0.31 | 43.69 ▼1.51 |
Add New Post /wp-admin/post-new.php | 6.13 ▲0.25 | 82.38 ▼11.58 |
Media Library /wp-admin/upload.php | 3.47 ▲0.24 | 33.77 ▲0.67 |
Add new /wp-admin/post-new.php?post_type=venomaps | 3.50 | 40.21 |
VenoMaps /wp-admin/options-general.php?page=venomaps | 3.44 | 30.70 |
All maps /wp-admin/edit.php?post_type=venomaps | 3.51 | 35.48 |
Server storage [IO: ▲6.19MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 48 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for VenoMaps - geo map and custom markers
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲66 | 14.35 ▲0.10 | 1.87 ▲0.19 | 45.37 ▲2.87 |
Dashboard /wp-admin | 2,226 ▲49 | 5.48 ▼0.19 | 82.22 ▼6.93 | 39.97 ▼2.94 |
Posts /wp-admin/edit.php | 2,131 ▲31 | 1.99 ▲0.04 | 34.47 ▼3.42 | 36.75 ▼0.66 |
Add New Post /wp-admin/post-new.php | 6,221 ▲4,695 | 19.28 ▼3.71 | 901.17 ▲228.23 | 51.55 ▲0.62 |
Media Library /wp-admin/upload.php | 1,431 ▲28 | 4.22 ▲0.06 | 95.76 ▲0.51 | 41.72 ▼2.90 |
Add new /wp-admin/post-new.php?post_type=venomaps | 2,408 | 8.21 | 213.40 | 98.10 |
VenoMaps /wp-admin/options-general.php?page=venomaps | 1,100 | 2.02 | 25.46 | 31.01 |
All maps /wp-admin/edit.php?post_type=venomaps | 1,095 | 1.95 | 29.92 | 29.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
- > GET request to /wp-admin/post-new.php?post_type=venomaps
- > Notice in wp-content/plugins/venomaps/include/class-venomaps-plugin.php+561
Undefined index: map_key
- > GET request to /wp-admin/post-new.php?post_type=venomaps
- > Warning in wp-content/plugins/venomaps/include/class-venomaps-plugin.php+561
Invalid argument supplied for foreach()
SRP 50% 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
Please fix the following items
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function delete_option() in wp-content/plugins/venomaps/uninstall.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/venomaps/include/class-venomaps-options.php:39
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/venomaps/include/class-venomaps-options.php:39
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/venomaps/include/class-venomaps-options.php:39
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: places, location, map, maps, openlayers
venomaps/venomaps.php Passed 13 tests
The main PHP script in "VenoMaps - geo map and custom markers" version 1.2.3 is automatically included on every request by WordPress
124 characters long description:
Create maps with custom styles, multiple markers, clusters, info windows with rich text editors. Widget and Block available.
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
It is important to fix the following items
- For security reasons, never distribute binary or executable files with your plugin
- .command - Terminal Command in macOS
- ☣ wp-content/plugins/venomaps/include/dev/build.command
- .command - Terminal Command in macOS
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 130 | 188 | 870 |
JavaScript | 5 | 98 | 51 | 612 |
CSS | 4 | 62 | 15 | 545 |
PO File | 3 | 162 | 186 | 419 |
SVG | 2 | 0 | 1 | 11 |
PHP code Passed 2 tests
Analyzing 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.32 |
Average class complexity | 45.00 |
▷ Minimum class complexity | 22.00 |
▷ Maximum class complexity | 68.00 |
Average method complexity | 4.03 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.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 | 29 | |
▷ Static methods | 2 | 6.90% |
▷ Public methods | 27 | 93.10% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 6.90% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
No PNG files were detected