Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/mapme/api.php+112
The behavior of unparenthesized expressions containing both '.' and '+'/'-' will change in PHP 8: '+'/'-' will take a higher precedence
Server metrics [RAM: ▼0.95MB] [CPU: ▼32.33ms] Passed 4 tests
A check of server-side resources used by Mapme
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 40.27 ▼4.34 |
Dashboard /wp-admin | 3.00 ▼0.34 | 25.28 ▼32.19 |
Posts /wp-admin/edit.php | 3.00 ▼0.36 | 23.01 ▼19.35 |
Add New Post /wp-admin/post-new.php | 3.00 ▼2.89 | 21.58 ▼64.94 |
Media Library /wp-admin/upload.php | 3.00 ▼0.23 | 21.48 ▼12.85 |
Mapme /wp-admin/options-general.php?page=mapme | 3.00 | 24.63 |
Server storage [IO: ▲0.16MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Mapme
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.35 ▼0.42 | 1.61 ▲0.04 | 44.46 ▲3.06 |
Dashboard /wp-admin | 2,204 ▲27 | 5.56 ▼0.02 | 97.65 ▲11.53 | 44.19 ▲3.78 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.00 ▲0.02 | 33.35 ▼4.14 | 34.50 ▼2.80 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.45 ▲0.26 | 656.05 ▼10.39 | 73.42 ▼2.51 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.22 ▲0.08 | 100.52 ▼6.10 | 45.32 ▼1.76 |
Mapme /wp-admin/options-general.php?page=mapme | 1,032 | 1.94 | 25.55 | 28.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/mapme/admin.php+23
Undefined variable: page
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
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/options-general.php?page=mapme
- > Notice in wp-content/plugins/mapme/admin.php+23
Undefined variable: page
- > GET request to /wp-admin/options-general.php?page=mapme
- > Notice in wp-content/plugins/mapme/admin.php+186
Trying to access array offset on value of type bool
SRP Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Looking good! No server-side errors or output on direct access of PHP files
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)
Please fix the following user-side errors
- > GET request to /wp-admin/options-general.php?page=mapme
- > Network (severe)
wp-content/plugins/mapme/css/setting.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/options-general.php?page=mapme
- > Network (severe)
wp-content/plugins/mapme/js/script.js - Failed to load resource: the server responded with a status of 404 (Not Found)
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
7 plugin tags: shortcode, shortcodes, mapme, maps, map...
mapme/index.php 85% from 13 tests
The main file in "Mapme" v. 1.3.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("mapme.php" instead of "index.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 194 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected664 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 159 | 143 | 418 |
JavaScript | 2 | 4 | 2 | 138 |
PO File | 1 | 24 | 27 | 69 |
SVG | 1 | 0 | 1 | 18 |
CSS | 3 | 5 | 2 | 17 |
INI | 1 | 1 | 0 | 4 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
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 | 25 | |
▷ Named functions | 25 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
7 PNG files occupy 0.13MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
logo1.png | 2.13KB | 1.26KB | ▼ 40.70% |
logo3.png | 1.42KB | 0.66KB | ▼ 53.42% |
logo2.png | 1.67KB | 0.91KB | ▼ 45.42% |
screenshot-2.png | 15.91KB | 6.38KB | ▼ 59.89% |
screenshot-1.png | 99.32KB | 34.66KB | ▼ 65.10% |