Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/quae-map/quae_map.php+30
Methods with the same name as their class will not be constructors in a future version of PHP; Quae_Map_Widget has a deprecated constructor
Server metrics [RAM: ▼1.91MB] [CPU: ▼54.72ms] Passed 4 tests
This is a short check of server-side resources used by Quae Map
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.38 | 4.39 ▼36.42 |
Dashboard /wp-admin | 2.10 ▼1.20 | 6.56 ▼42.71 |
Posts /wp-admin/edit.php | 2.10 ▼1.26 | 6.75 ▼48.86 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.79 | 8.47 ▼90.88 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 6.06 ▼30.17 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
widget_quae_map_widget |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Quae Map
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,938 ▲192 | 14.53 ▲0.15 | 24.98 ▲23.12 | 42.07 ▼3.81 |
Dashboard /wp-admin | 2,206 ▲21 | 5.84 ▲0.01 | 105.54 ▲0.86 | 41.48 ▼4.23 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.01 ▲0.01 | 39.65 ▼1.24 | 34.95 ▼3.97 |
Add New Post /wp-admin/post-new.php | 1,533 ▼11 | 23.17 ▲4.76 | 657.68 ▲18.10 | 62.72 ▲13.75 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.21 ▼0.03 | 102.13 ▼3.81 | 48.93 ▲7.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/quae-map/quae_map.php+30
Methods with the same name as their class will not be constructors in a future version of PHP; Quae_Map_Widget has a deprecated constructor
- The uninstall procedure has failed, leaving 7 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- widget_quae_map_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 30× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Undefined variable: scaleControl in wp-content/plugins/quae-map/inc/shortcode-frontend.php on line 1
- > PHP Notice
Undefined variable: title in wp-content/plugins/quae-map/inc/widget-frontend.php on line 3
- > PHP Notice
Undefined variable: zoom in wp-content/plugins/quae-map/inc/widget-frontend.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function checked() in wp-content/plugins/quae-map/inc/widget-frontend.php:7
- > PHP Notice
Undefined variable: streetViewControl in wp-content/plugins/quae-map/inc/shortcode-frontend.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function checked() in wp-content/plugins/quae-map/inc/shortcode-frontend.php:3
- > PHP Notice
Undefined variable: zoomControl in wp-content/plugins/quae-map/inc/shortcode-frontend.php on line 1
- > PHP Notice
Undefined variable: scaleControl in wp-content/plugins/quae-map/inc/widget-frontend.php on line 5
- > PHP Notice
Undefined variable: before_widget in wp-content/plugins/quae-map/inc/widget-frontend.php on line 2
- > PHP Notice
Undefined variable: height in wp-content/plugins/quae-map/inc/shortcode-frontend.php on line 1
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% 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
9 plugin tags: google map, google maps api v3, geocoding, maps, google maps plugin...
quae-map/quae_map.php 85% from 13 tests
The principal PHP file in "Quae Map" v. 1.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Text Domain: The text domain name should consist of only dashes and lowercase characters
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("quae-map.php" instead of "quae_map.php")
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
No dangerous file extensions were detected361 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 26 | 17 | 175 |
PO File | 2 | 22 | 22 | 81 |
JavaScript | 1 | 3 | 3 | 73 |
CSS | 1 | 7 | 0 | 32 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 18.00 |
▷ Minimum class complexity | 18.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 5.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 compressed PNG files occupy 0.14MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-2.png | 31.77KB | 30.70KB | ▼ 3.39% |
assets/screenshot-4.png | 72.48KB | 71.89KB | ▼ 0.82% |
assets/screenshot-1.png | 18.33KB | 17.77KB | ▼ 3.07% |
assets/screenshot-3.png | 18.61KB | 17.66KB | ▼ 5.09% |