Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼4.09ms] Passed 4 tests
A check of server-side resources used by Quick Maps
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 39.78 ▲0.15 |
Dashboard /wp-admin | 3.39 ▲0.08 | 49.29 ▼5.20 |
Posts /wp-admin/edit.php | 3.51 ▲0.14 | 48.10 ▼2.40 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 89.96 ▼8.90 |
Media Library /wp-admin/upload.php | 3.32 ▲0.08 | 37.62 ▲1.35 |
Quick Maps /wp-admin/options-general.php?page=quick_maps | 3.28 | 36.01 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_quick_maps_widget |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Quick Maps
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.73 ▲0.56 | 1.97 ▲0.31 | 40.96 ▼2.66 |
Dashboard /wp-admin | 2,199 ▲22 | 5.65 ▼0.04 | 83.79 ▼8.85 | 42.51 ▼0.35 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.06 ▲0.04 | 39.76 ▼3.26 | 35.99 ▼1.47 |
Add New Post /wp-admin/post-new.php | 1,553 ▲27 | 23.26 ▲5.79 | 661.45 ▼24.11 | 52.46 ▲3.43 |
Media Library /wp-admin/upload.php | 1,404 ▲1 | 4.20 ▼0.03 | 99.96 ▼3.95 | 44.04 ▼1.98 |
Quick Maps /wp-admin/options-general.php?page=quick_maps | 950 | 2.14 | 23.50 | 29.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_quick_maps_widget
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 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
The following issues need your attention
- 9× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
require_once(QMAPS_PLUGIN_DIR/quick-maps.php): failed to open stream: No such file or directory in wp-content/plugins/quick-maps/lib/quick_maps_widget.php on line 19
- > PHP Fatal error
Uncaught Error: Call to undefined function untrailingslashit() in wp-content/plugins/quick-maps/settings.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function untrailingslashit() in wp-content/plugins/quick-maps/settings.php:21
- > PHP Warning
Use of undefined constant QMAPS_PLUGIN_DIR - assumed 'QMAPS_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/quick-maps/lib/settings_menu.php on line 19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/quick-maps/lib/wp.php:35
- > PHP Fatal error
require_once(): Failed opening required 'QMAPS_PLUGIN_DIR/quick-maps.php' (include_path='.:/usr/share/php') in wp-content/plugins/quick-maps/lib/settings_menu.php on line 19
- > PHP Warning
require_once(QMAPS_PLUGIN_DIR/quick-maps.php): failed to open stream: No such file or directory in wp-content/plugins/quick-maps/lib/settings_menu.php on line 19
- > PHP Fatal error
require_once(): Failed opening required 'QMAPS_PLUGIN_DIR/quick-maps.php' (include_path='.:/usr/share/php') in wp-content/plugins/quick-maps/lib/quick_maps_widget.php on line 19
- > PHP Warning
Use of undefined constant QMAPS_PLUGIN_DIR - assumed 'QMAPS_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/quick-maps/lib/quick_maps_widget.php on line 19
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: ip location, geolocation, maps, google maps, quick maps...
quick-maps/quick-maps.php 92% from 13 tests
"Quick Maps" version 1.0.18's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Domain Path: The domain path folder does not exist ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin298 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 69 | 84 | 298 |
PHP code Passed 2 tests
A short 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.27 |
Average class complexity | 10.67 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 2.38 |
▷ 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 | 22 | |
▷ Static methods | 3 | 13.64% |
▷ Public methods | 21 | 95.45% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 4.55% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.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
There were not PNG files found in your plugin