Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
- This plugin did not install gracefully
- > Notice in wp-content/plugins/osmaps/icd/class.updateversion.php+17
Trying to access array offset on value of type bool
Server metrics [RAM: ▲0.01MB] [CPU: ▼0.56ms] Passed 4 tests
Analyzing server-side resources used by OSMaps
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 36.46 ▼1.04 |
Dashboard /wp-admin | 3.32 ▲0.02 | 44.59 ▲0.98 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 46.07 ▼1.08 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 87.62 ▼1.10 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.35 ▲2.83 |
OSMaps /wp-admin/options-general.php?page=osmaps/icd/class.admin.php | 3.22 | 30.29 |
Server storage [IO: ▲1.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 46 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
osmapsWP |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for OSMaps
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,839 ▲53 | 13.86 ▼0.73 | 18.15 ▲16.32 | 42.49 ▲2.94 |
Dashboard /wp-admin | 2,204 ▲27 | 5.62 ▲0.01 | 80.91 ▼2.80 | 37.60 ▼5.21 |
Posts /wp-admin/edit.php | 2,106 ▲6 | 1.99 ▲0.03 | 38.64 ▲0.90 | 36.92 ▼0.84 |
Add New Post /wp-admin/post-new.php | 1,531 ▲3 | 23.33 ▲0.13 | 632.29 ▲40.12 | 53.09 ▲4.38 |
Media Library /wp-admin/upload.php | 1,406 ▲9 | 4.15 ▼0.04 | 96.97 ▼5.63 | 41.07 ▼0.95 |
OSMaps /wp-admin/options-general.php?page=osmaps/icd/class.admin.php | 1,432 | 2.16 | 26.24 | 30.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% 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
Almost there! Just fix the following items
- 6× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/osmaps/public/expanded/MapMapbox193.php
- > /wp-content/plugins/osmaps/public/expanded/OSMaps_setting.php
- > /wp-content/plugins/osmaps/public/expanded/MapMapbox.php
- > /wp-content/plugins/osmaps/public/expanded/MapLeaflet.php
- > /wp-content/plugins/osmaps/public/expanded/ButtonMap2.php
- > /wp-content/plugins/osmaps/public/expanded/MapLeaflet193.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Requires php: Version format is invalid
osmaps/osmaps.php 92% from 13 tests
The main PHP file in "OSMaps" ver. 2.3.8 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Text Domain: Please use dashes and lowercase characters for text domains
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin5,355 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 488 | 354 | 2,415 |
CSS | 7 | 163 | 50 | 1,440 |
JavaScript | 3 | 2 | 17 | 1,066 |
HTML | 5 | 49 | 0 | 222 |
PO File | 1 | 72 | 74 | 212 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 33.00 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 60.00 |
Average method complexity | 3.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 2 | 100.00% |
Methods | 33 | |
▷ Static methods | 7 | 21.21% |
▷ Public methods | 11 | 33.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 22 | 66.67% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
9 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/images/marker-icon.png | 1.43KB | 1.55KB | 0.00% |
public/leaflet193/images/marker-icon-2x.png | 2.41KB | 2.52KB | 0.00% |
public/leaflet193/images/marker-icon.png | 1.43KB | 1.55KB | 0.00% |
public/images/marker-shadow.png | 0.60KB | 1.16KB | 0.00% |
public/leaflet193/images/marker-shadow.png | 0.60KB | 1.16KB | 0.00% |