Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.12MB] [CPU: ▼2.70ms] Passed 4 tests
A check of server-side resources used by Many points on the map
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 44.49 ▲0.23 |
Dashboard /wp-admin | 3.43 ▲0.12 | 53.96 ▼2.44 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 55.70 ▲3.34 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 96.09 ▼6.87 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 40.07 ▼1.73 |
Create a new map /wp-admin/admin.php?page=mxmpotm-many-points-on-the-map-add | 3.37 | 39.56 |
Many points /wp-admin/admin.php?page=mxmpotm-many-points-on-the-map | 3.35 | 41.54 |
Edit Map /wp-admin/admin.php?page=mxmpotm-many-points-on-the-map-edit | 3.41 | 38.27 |
Settings /wp-admin/admin.php?page=mxmpotm-many-points-on-the-map-settings | 3.35 | 36.48 |
Server storage [IO: ▲1.31MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 35 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_mxmpotm_map_points |
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Many points on the map: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,854 ▲93 | 14.43 ▲0.04 | 1.89 ▲0.06 | 46.79 ▲4.57 |
Dashboard /wp-admin | 2,228 ▲51 | 5.60 ▲0.03 | 99.71 ▲2.62 | 42.50 ▼1.74 |
Posts /wp-admin/edit.php | 2,139 ▲42 | 2.00 ▼0.03 | 42.28 ▲2.84 | 37.77 ▼4.49 |
Add New Post /wp-admin/post-new.php | 1,557 ▲27 | 23.17 ▼0.06 | 613.60 ▼86.83 | 56.84 ▲2.10 |
Media Library /wp-admin/upload.php | 1,439 ▲39 | 4.30 ▲0.10 | 102.80 ▼11.62 | 47.23 ▼1.19 |
Create a new map /wp-admin/admin.php?page=mxmpotm-many-points-on-the-map-add | 1,603 | 3.16 | 45.91 | 111.76 |
Many points /wp-admin/admin.php?page=mxmpotm-many-points-on-the-map | 1,062 | 3.14 | 38.98 | 35.44 |
Edit Map /wp-admin/admin.php?page=mxmpotm-many-points-on-the-map-edit | 1,730 | 4.06 | 46.27 | 50.70 |
Settings /wp-admin/admin.php?page=mxmpotm-many-points-on-the-map-settings | 1,031 | 3.07 | 38.83 | 34.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.31MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The uninstall procedure failed, leaving 1 table in the database
- wp_mxmpotm_map_points
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=mxmpotm-many-points-on-the-map-edit
- > Notice in wp-content/plugins/many-points-on-the-map/includes/admin/templates/edit_map.php+6
Undefined index: map
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=mxmpotm-many-points-on-the-map-edit
- > request to
- > Notice in wp-config.php+20
Undefined index: REQUEST_METHOD
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 take a closer look at the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/many-points-on-the-map/includes/admin/templates/components/js_vars.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/many-points-on-the-map/includes/admin/templates/components/add_point_for_js.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
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
2 plugin tags: map, google maps
many-points-on-the-map/many-points-on-the-map.php Passed 13 tests
The primary PHP file in "Many points on the map" version 1.4.1 is used by WordPress to initiate all plugin functionality
73 characters long description:
The plugin helps you set points on the map and filter them in the future.
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
Everything looks great! No dangerous files found in this plugin7,543 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 1,146 | 434 | 3,307 |
CSS | 5 | 2 | 24 | 2,435 |
PHP | 15 | 631 | 240 | 975 |
SVG | 1 | 0 | 0 | 685 |
PO File | 1 | 64 | 81 | 141 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 7.60 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 1 | 20.00% |
Methods | 33 | |
▷ Static methods | 3 | 9.09% |
▷ Public methods | 32 | 96.97% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 3.03% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/admin/assets/img/default_icon.png | 19.02KB | 1.76KB | ▼ 90.74% |