Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.30MB] [CPU: ▼134.36ms] Passed 4 tests
Server-side resources used by OSMapper
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.13 ▲0.29 | 38.31 ▲7.08 |
Dashboard /wp-admin | 3.41 ▲0.35 | 47.83 ▲8.21 |
Posts /wp-admin/edit.php | 3.46 ▲0.35 | 50.20 ▲5.06 |
Add New Post /wp-admin/post-new.php | 5.71 ▲0.28 | 95.90 ▼553.62 |
Media Library /wp-admin/upload.php | 3.29 ▲0.29 | 36.39 ▲4.04 |
All Maps /wp-admin/edit.php?post_type=ba_map | 3.41 | 36.67 |
New Map /wp-admin/post-new.php?post_type=ba_map | 3.53 | 49.55 |
Server storage [IO: ▲1.99MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 97 new files
Database: no new tables, 1 new option
New WordPress options |
---|
show_review |
Browser metrics Passed 4 tests
Checking browser requirements for OSMapper
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,924 ▲328 | 17.58 ▲1.55 | 18.73 ▲2.89 | 44.55 ▼2.49 |
Dashboard /wp-admin | 3,087 ▲156 | 5.94 ▼0.03 | 145.91 ▼21.35 | 107.03 ▼0.13 |
Posts /wp-admin/edit.php | 2,859 ▲120 | 2.73 ▲0.02 | 70.86 ▲5.00 | 82.75 ▼6.10 |
Add New Post /wp-admin/post-new.php | 1,738 ▲134 | 18.50 ▼0.04 | 382.60 ▼10.59 | 117.13 ▲13.80 |
Media Library /wp-admin/upload.php | 1,928 ▲121 | 5.04 ▼0.00 | 162.65 ▲9.43 | 128.74 ▲9.83 |
All Maps /wp-admin/edit.php?post_type=ba_map | 1,575 | 3.32 | 73.32 | 91.09 |
New Map /wp-admin/post-new.php?post_type=ba_map | 3,457 | 8.96 | 203.76 | 188.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 1 option in the database
- show_review
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=ba_map
- > Notice in wp-content/plugins/osmapper/classes/FormBuilder.php+67
Trying to access array offset on value of type null
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/osmapper/includes/functions.php:59
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/osmapper/includes/functions.php:59
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Screenshots: Screenshot #1 (Map display on website.) image required
osmapper/osmapper.php Passed 13 tests
"OSMapper" version 2.1.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
36 characters long description:
Plugins help with adding map on page
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin5,019 lines of code in 59 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 17 | 518 | 532 | 1,680 |
PHP | 24 | 583 | 669 | 1,641 |
LESS | 3 | 169 | 44 | 626 |
CSS | 5 | 56 | 29 | 598 |
SVG | 7 | 0 | 7 | 289 |
PO File | 1 | 64 | 66 | 163 |
JSON | 2 | 0 | 0 | 22 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 11.56 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 82.00 |
Average method complexity | 3.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 56.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 18 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 18 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 90 | |
▷ Static methods | 3 | 3.33% |
▷ Public methods | 70 | 77.78% |
▷ Protected methods | 12 | 13.33% |
▷ Private methods | 8 | 8.89% |
Functions | 6 | |
▷ Named functions | 5 | 83.33% |
▷ Anonymous functions | 1 | 16.67% |
Constants | 7 | |
▷ Global constants | 7 | 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
24 PNG files occupy 0.85MB with 0.53MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/schemes/default_hot.png | 116.56KB | 41.66KB | ▼ 64.26% |
assets/images/schemes/light_all.png | 18.10KB | 6.44KB | ▼ 64.41% |
assets/images/fullscreen@2x.png | 0.41KB | 0.15KB | ▼ 63.10% |
assets/images/banner-772-250.png | 77.58KB | 28.03KB | ▼ 63.88% |
assets/images/icon-128-128.png | 17.13KB | 7.00KB | ▼ 59.15% |