Benchmarks
Plugin footprint 65% from 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.13MB] [CPU: ▼9.15ms] Passed 4 tests
Analyzing server-side resources used by Maps by Cartes.io - live community and private maps for anything
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 41.67 ▲2.09 |
Dashboard /wp-admin | 3.45 ▲0.10 | 48.65 ▼14.97 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 44.43 ▼0.87 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 83.97 ▼22.86 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 36.30 ▲3.77 |
Discover Maps /wp-admin/admin.php?page=cartes_discover_maps | 3.39 | 492.49 |
All Maps /wp-admin/admin.php?page=cartes_main_menu | 3.34 | 301.09 |
Add New /wp-admin/admin-post.php?action=cartes_create_map&_wpnonce=792cf1bfb9 | 3.13 | 23.08 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 6 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_cartes |
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
cartes_db_version |
Browser metrics Passed 4 tests
An overview of browser requirements for Maps by Cartes.io - live community and private maps for anything
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲51 | 14.34 ▼0.25 | 1.57 ▼0.06 | 37.16 ▼8.49 |
Dashboard /wp-admin | 2,221 ▲41 | 5.61 ▼0.03 | 80.89 ▼8.90 | 35.82 ▼6.10 |
Posts /wp-admin/edit.php | 2,120 ▲20 | 2.02 ▼0.00 | 34.15 ▼2.87 | 29.35 ▼6.40 |
Add New Post /wp-admin/post-new.php | 1,558 ▲32 | 23.07 ▼0.12 | 612.55 ▼0.06 | 48.00 ▼0.40 |
Media Library /wp-admin/upload.php | 1,423 ▲23 | 4.18 ▼0.04 | 94.44 ▲1.52 | 40.42 ▼0.79 |
Discover Maps /wp-admin/admin.php?page=cartes_discover_maps | 1,150 | 1.98 | 22.04 | 42.05 |
All Maps /wp-admin/admin.php?page=cartes_main_menu | 1,029 | 2.16 | 22.62 | 23.59 |
Add New /wp-admin/admin-post.php?action=cartes_create_map&_wpnonce=792cf1bfb9 | 28 | 0.42 | 0.08 | 3.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie tables were found after uninstall: 1 table
- wp_cartes
- This plugin did not uninstall successfully, leaving 7 options in the database
- db_upgraded
- can_compress_scripts
- cartes_db_version
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/admin.php?page=cartes_main_menu
- > Notice in wp-content/plugins/cartes/CartesWPList.php+240
Undefined property: stdClass::$total
- > GET request to /wp-admin/admin.php?page=cartes_main_menu
- > Notice in wp-content/plugins/cartes/CartesWPList.php+241
Undefined property: stdClass::$per_page
- > GET request to /wp-admin/admin.php?page=cartes_main_menu
- > Notice in wp-content/plugins/cartes/CartesWPList.php+242
Undefined property: stdClass::$last_page
- > GET request to /wp-admin/admin.php?page=cartes_main_menu
- > Notice in wp-content/plugins/cartes/CartesWPList.php+114
Undefined property: stdClass::$categories
- > GET request to /wp-admin/admin.php?page=cartes_main_menu
- > Warning in wp-content/plugins/cartes/CartesWPList.php+114
array_map(): Expected parameter 2 to be an array, null given
- > GET request to /wp-admin/admin.php?page=cartes_main_menu
- > Warning in wp-content/plugins/cartes/CartesWPList.php+116
implode(): Invalid arguments passed
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 3× PHP files output text when accessed directly:
- > /wp-content/plugins/cartes/CartesMap.php
- > /wp-content/plugins/cartes/CartesIO.php
- > /wp-content/plugins/cartes/CartesWPList.php
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors you should fix
- > GET request to /wp-admin/admin-post.php?action=cartes_create_map&_wpnonce=792cf1bfb9
- > Network (severe)
wp-admin/admin-post.php?action=cartes_create_map&_wpnonce=792cf1bfb9 - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
Optimizations
Plugin configuration 93% from 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
9 plugin tags: mapping, google maps, markers, cartes, leaflet...
cartes/CartesIO.php 85% from 13 tests
The main file in "Maps by Cartes.io - live community and private maps for anything" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("cartes.php" instead of "CartesIO.php")
- Text Domain: The text domain should only use lowercase characters and dashes
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
No dangerous file extensions were detected706 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 201 | 240 | 700 |
CSS | 1 | 1 | 0 | 6 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 22.00 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 2.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 56 | |
▷ Static methods | 5 | 8.93% |
▷ Public methods | 51 | 91.07% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 8.93% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.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
No PNG images were found in this plugin