Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.20MB] [CPU: ▼6.03ms] Passed 4 tests
A check of server-side resources used by Map Me
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.20 | 41.73 ▼0.88 |
Dashboard /wp-admin | 3.51 ▲0.17 | 48.44 ▼14.93 |
Posts /wp-admin/edit.php | 3.62 ▲0.27 | 47.93 ▼1.26 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.21 | 87.31 ▼7.05 |
Media Library /wp-admin/upload.php | 3.43 ▲0.21 | 40.93 ▲7.65 |
Help /wp-admin/admin.php?page=mm_menu_page_handle | 3.40 | 32.56 |
Locations /wp-admin/edit.php?post_type=mm | 3.48 | 37.33 |
Settings /wp-admin/admin.php?page=mm_plugin_settings | 3.40 | 34.13 |
Server storage [IO: ▲0.40MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 264 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
mm_plugin_settings |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
mm_map_locations_formated |
Browser metrics Passed 4 tests
Checking browser requirements for Map Me
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲37 | 14.24 ▼0.13 | 1.70 ▼0.14 | 45.19 ▲3.35 |
Dashboard /wp-admin | 2,226 ▲46 | 5.53 ▼0.16 | 83.45 ▼0.79 | 38.30 ▼1.30 |
Posts /wp-admin/edit.php | 2,131 ▲31 | 2.03 ▲0.01 | 34.65 ▲0.98 | 33.66 ▼3.88 |
Add New Post /wp-admin/post-new.php | 1,557 ▲29 | 23.18 ▼0.02 | 642.62 ▲33.90 | 66.24 ▲6.05 |
Media Library /wp-admin/upload.php | 1,431 ▲28 | 4.15 ▼0.05 | 98.59 ▲3.08 | 45.90 ▲2.89 |
Help /wp-admin/admin.php?page=mm_menu_page_handle | 818 | 2.02 | 24.09 | 35.40 |
Locations /wp-admin/edit.php?post_type=mm | 1,119 | 1.97 | 30.53 | 29.64 |
Settings /wp-admin/admin.php?page=mm_plugin_settings | 1,237 | 2.00 | 22.30 | 33.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 8 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- mm_plugin_settings
- mm_map_locations_formated
- db_upgraded
- theysaidso_admin_options
- 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
Good news, no errors were detected
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
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/map-me/admin/plugin_menu_page.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/map-me/admin/checker.php:111
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Tags: Too many tags (14 tag instead of maximum 10); only the first 5 tags are used in your directory listing
map-me/map-me.php Passed 13 tests
This is the main PHP file of "Map Me" version 2.0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
84 characters long description:
Google Maps Plugin. Easy, fast and efficient way to embed google map into your site.
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
Good job! No executable or dangerous file extensions detected1,238 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 285 | 79 | 1,047 |
JavaScript | 3 | 47 | 6 | 109 |
CSS | 2 | 14 | 0 | 82 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 40 | |
▷ Named functions | 40 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
250 PNG files occupy 0.32MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icons/bowling.png | 1.63KB | 1.32KB | ▼ 19.05% |
assets/icons/handball2.png | 1.04KB | 0.87KB | ▼ 17.03% |
assets/icons/mine-closed.png | 1.17KB | 1.03KB | ▼ 12.04% |
assets/icons/boardercross.png | 4.00KB | 1.01KB | ▼ 74.85% |
assets/icons/bedandbreakfast1.png | 1.22KB | 1.09KB | ▼ 9.96% |