Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.04MB] [CPU: ▼4.45ms] Passed 4 tests
Analyzing server-side resources used by The WP Map Factory
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 40.80 ▼0.05 |
Dashboard /wp-admin | 3.34 ▲0.04 | 43.53 ▼4.87 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 45.79 ▲0.66 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 86.05 ▼13.54 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 35.04 ▲1.80 |
Settings /wp-admin/edit.php?post_type=themapfactorymaps&page=tmf_settings | 3.24 | 31.22 |
All Maps /wp-admin/edit.php?post_type=themapfactorymaps | 3.31 | 35.78 |
Add New /wp-admin/post-new.php?post_type=themapfactorymaps | 3.43 | 68.98 |
Server storage [IO: ▲1.80MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 1,436 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for The WP Map Factory
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,865 ▲130 | 13.22 ▼1.07 | 7.83 ▲5.91 | 40.73 ▼6.65 |
Dashboard /wp-admin | 2,237 ▲49 | 4.83 ▼1.06 | 102.92 ▲1.87 | 40.74 ▼6.15 |
Posts /wp-admin/edit.php | 2,120 ▲31 | 2.01 ▼0.02 | 33.84 ▲0.26 | 32.84 ▲2.17 |
Add New Post /wp-admin/post-new.php | 1,560 ▲27 | 23.23 ▲0.31 | 631.36 ▼2.82 | 56.08 ▲1.17 |
Media Library /wp-admin/upload.php | 1,419 ▲31 | 4.25 ▲0.07 | 95.72 ▼3.70 | 42.61 ▼0.82 |
Settings /wp-admin/edit.php?post_type=themapfactorymaps&page=tmf_settings | 809 | 2.02 | 22.91 | 25.40 |
All Maps /wp-admin/edit.php?post_type=themapfactorymaps | 1,113 | 1.93 | 29.83 | 29.32 |
Add New /wp-admin/post-new.php?post_type=themapfactorymaps | 15,610 | 14.76 | 601.12 | 203.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/the-wp-map-factory/the-wp-map-factory.php+422
Trying to access array offset on value of type bool
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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 output text when accessed directly:
- > /wp-content/plugins/the-wp-map-factory/the-wp-map-factory.php
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/the-wp-map-factory/includes/the_map_factory_backend.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/the-wp-map-factory/includes/the_map_factory_frontend.php:11
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/post-new.php?post_type=themapfactorymaps
- > Console-api (severe) in unknown
https://maps.googleapis.com/maps/api/js?key&callback=tmfInitialiseMap&ver=6.3.1 128:245 "You are using this API without a key. See https://developers.google.com/maps/documentation/javascript/error-messages?utm_source=maps_js&utm_medium=degraded&utm_campaign=billing#api-key-and-billing-errors"
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: maps, google, map, osm
the-wp-map-factory/the-wp-map-factory.php 92% from 13 tests
The primary PHP file in "The WP Map Factory" version 2.0.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- 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 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected5,806 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 588 | 69 | 3,096 |
PHP | 4 | 207 | 120 | 2,400 |
CSS | 2 | 60 | 10 | 310 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
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 | 33 | |
▷ Named functions | 33 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1422 PNG files occupy 1.50MB with 0.45MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/images/Orange/Stores/medicalstore.png | 1.41KB | 1.04KB | ▼ 25.94% |
includes/images/Orange/Restaurants and hotels/lodging-2.png | 0.60KB | 0.44KB | ▼ 27.07% |
includes/images/Blue/Stores/japanese-sweet-2.png | 0.76KB | 0.51KB | ▼ 32.95% |
includes/images/Pink/Stores/gumball_machine.png | 1.17KB | 0.78KB | ▼ 33.39% |
includes/images/Blue/Stores/e-bike-rental.png | 1.38KB | 0.97KB | ▼ 29.75% |