Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼11.88ms] Passed 4 tests
An overview of server-side resources used by MapCraft - Google Maps Plugin
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 41.17 ▼2.49 |
Dashboard /wp-admin | 3.33 ▼0.01 | 53.95 ▼15.47 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 48.59 ▼6.67 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 90.59 ▼22.88 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 37.41 ▼1.16 |
MapCraft /wp-admin/plugins.php?page=MapCraft | 3.25 | 36.10 |
Server storage [IO: ▲7.68MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 61 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
mapcraft_key |
Browser metrics Passed 4 tests
A check of browser resources used by MapCraft - Google Maps Plugin
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,803 ▲42 | 14.25 ▼0.10 | 1.99 ▲0.20 | 29.93 ▼14.05 |
Dashboard /wp-admin | 2,212 ▲35 | 5.57 ▼0.17 | 100.36 ▲9.71 | 54.08 ▲11.43 |
Posts /wp-admin/edit.php | 2,114 ▲35 | 1.98 ▼0.01 | 35.97 ▼4.01 | 40.56 ▲5.78 |
Add New Post /wp-admin/post-new.php | 6,375 ▲4,840 | 27.46 ▲9.27 | 919.98 ▲251.50 | 40.77 ▼26.80 |
Media Library /wp-admin/upload.php | 1,414 ▲14 | 4.23 ▲0.03 | 100.60 ▼19.81 | 56.06 ▲10.53 |
MapCraft /wp-admin/plugins.php?page=MapCraft | 860 | 9.17 | 271.50 | 38.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 7 options in the database
- theysaidso_admin_options
- mapcraft_key
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- widget_recent-comments
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
Even though everything seems fine, this is not 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
Please fix the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/mapcraft/public/partials/mapcraft-public-display.php
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)
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% 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
Attributes that require attention:
- Screenshots: These screenshots require images: #1 (2. Drawing markers, settings), #3 (Custom map styles), #4 (Drawing polygons, polylines, circles, rectangles), #5 (Store locator), #6 (Importing markers from CSV), #7 (Map customization)
mapcraft/mapcraft.php Passed 13 tests
This is the main PHP file of "MapCraft - Google Maps Plugin" version 1.4.10, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
45 characters long description:
Craft beautiful Google Maps for your website.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin19,761 lines of code in 40 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 17 | 2 | 0 | 9,656 |
CSS | 4 | 20 | 22 | 9,453 |
PHP | 14 | 199 | 679 | 391 |
JavaScript | 5 | 39 | 124 | 261 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.10 |
Average class complexity | 2.56 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 40 | |
▷ Static methods | 4 | 10.00% |
▷ Public methods | 32 | 80.00% |
▷ Protected methods | 2 | 5.00% |
▷ Private methods | 6 | 15.00% |
Functions | 5 | |
▷ Named functions | 4 | 80.00% |
▷ Anonymous functions | 1 | 20.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
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin