Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
- Install procedure had errors
- > Notice in wp-content/plugins/map-it-by-two-row-studio/functions/init.php+52
Trying to access array offset on value of type bool
Server metrics [RAM: ▼1.95MB] [CPU: ▼55.86ms] Passed 4 tests
An overview of server-side resources used by Map It! by Two Row Studio
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.04 ▼1.42 | 9.05 ▼31.22 |
Dashboard /wp-admin | 2.06 ▼1.28 | 7.31 ▼50.90 |
Posts /wp-admin/edit.php | 2.06 ▼1.29 | 7.92 ▼42.41 |
Add New Post /wp-admin/post-new.php | 2.06 ▼3.82 | 7.57 ▼98.89 |
Media Library /wp-admin/upload.php | 2.06 ▼1.16 | 7.60 ▼23.67 |
Server storage [IO: ▲1.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 33 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
db_upgraded |
_trmi_db_version |
widget_theysaidso_widget |
_trmi_version |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Map It! by Two Row Studio
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,903 ▲132 | 14.92 ▲0.51 | 9.07 ▲7.24 | 27.20 ▼12.69 |
Dashboard /wp-admin | 2,231 ▲43 | 5.71 ▲0.84 | 98.73 ▼2.07 | 41.87 ▲1.14 |
Posts /wp-admin/edit.php | 2,117 ▲28 | 2.49 ▲0.47 | 45.73 ▲1.81 | 36.99 ▲0.47 |
Add New Post /wp-admin/post-new.php | 1,536 ▲8 | 23.71 ▲5.57 | 695.77 ▲75.89 | 39.13 ▼13.89 |
Media Library /wp-admin/upload.php | 1,410 ▲19 | 5.08 ▲0.91 | 100.95 ▼0.29 | 42.49 ▼0.36 |
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/map-it-by-two-row-studio/functions/init.php+52
Trying to access array offset on value of type bool
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
Almost there! Just fix the following items
- 15× PHP files output text when accessed directly (only 10 are shown):
- > /wp-content/plugins/map-it-by-two-row-studio/trs_mapit.php
- > /wp-content/plugins/map-it-by-two-row-studio/functions/init.php
- > /wp-content/plugins/map-it-by-two-row-studio/functions/shortcodes/trmi_map.php
- > /wp-content/plugins/map-it-by-two-row-studio/classes/google/class_info_window.php
- > /wp-content/plugins/map-it-by-two-row-studio/functions/hooks.php
- > /wp-content/plugins/map-it-by-two-row-studio/admin/functions/metaboxes.php
- > /wp-content/plugins/map-it-by-two-row-studio/admin/functions/settings.php
- > /wp-content/plugins/map-it-by-two-row-studio/classes/google/class-map.php
- > /wp-content/plugins/map-it-by-two-row-studio/admin/functions/setup.php
- > /wp-content/plugins/map-it-by-two-row-studio/classes/common/class-notices.php
- 1× 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-it-by-two-row-studio/functions/ajax.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: extensible, google maps, locations, geolocation
map-it-by-two-row-studio/trs_mapit.php 85% from 13 tests
Analyzing the main PHP file in "Map It! by Two Row Studio" version 1.0.6
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("map-it-by-two-row-studio.php" instead of "trs_mapit.php")
- 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 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected1,833 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 179 | 252 | 1,300 |
JavaScript | 2 | 76 | 39 | 344 |
CSS | 2 | 56 | 0 | 189 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 19.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 46.00 |
Average method complexity | 4.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 1 | 20.00% |
▷ Concrete classes | 4 | 80.00% |
▷ Final classes | 0 | 0.00% |
Methods | 27 | |
▷ Static methods | 10 | 37.04% |
▷ Public methods | 22 | 81.48% |
▷ Protected methods | 2 | 7.41% |
▷ Private methods | 3 | 11.11% |
Functions | 24 | |
▷ Named functions | 24 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.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
4 PNG files occupy 0.26MB with 0.17MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-772x250.png | 51.72KB | 16.54KB | ▼ 68.02% |
assets/banner-1544x500.png | 167.69KB | 51.88KB | ▼ 69.06% |
assets/icon-256x256.png | 32.31KB | 11.39KB | ▼ 64.74% |
assets/icon-128x128.png | 10.32KB | 4.41KB | ▼ 57.23% |