Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.12MB] [CPU: ▼9.09ms] Passed 4 tests
Server-side resources used by OS DataHub Maps
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 37.74 ▼4.99 |
Dashboard /wp-admin | 3.44 ▲0.09 | 49.52 ▼16.81 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 50.76 ▲6.31 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 84.85 ▼17.84 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 37.88 ▲3.29 |
OS Maps /wp-admin/options-general.php?page=os-datahub-maps | 3.33 | 32.26 |
Server storage [IO: ▲0.71MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 129 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for OS DataHub Maps
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,874 ▲87 | 14.73 ▲0.66 | 1.84 ▼0.14 | 42.22 ▼2.02 |
Dashboard /wp-admin | 2,218 ▲37 | 5.80 ▲0.11 | 92.09 ▼16.93 | 38.14 ▼0.62 |
Posts /wp-admin/edit.php | 2,128 ▲28 | 2.44 ▲0.48 | 39.44 ▲6.47 | 33.31 ▼3.18 |
Add New Post /wp-admin/post-new.php | 1,543 ▲17 | 23.64 ▲0.36 | 659.53 ▼34.06 | 34.96 ▼22.29 |
Media Library /wp-admin/upload.php | 1,426 ▲32 | 4.53 ▲0.30 | 98.37 ▼4.00 | 42.03 ▲1.08 |
OS Maps /wp-admin/options-general.php?page=os-datahub-maps | 1,568 | 2.58 | 51.48 | 32.19 |
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
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
os-datahub-maps/os-datahub-maps.php Passed 13 tests
"OS DataHub Maps" version 1.7.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
58 characters long description:
Plugin for displaying OS Maps using the Data Hub Maps API.
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
Everything looks great! No dangerous files found in this plugin2,791 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 176 | 353 | 1,129 |
CSS | 6 | 167 | 41 | 1,054 |
JavaScript | 12 | 26 | 94 | 585 |
SVG | 10 | 0 | 0 | 23 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 44.25 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 69.00 |
Average method complexity | 3.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 81 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 60 | 74.07% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 21 | 25.93% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 5 | |
▷ Global constants | 1 | 20.00% |
▷ Class constants | 4 | 80.00% |
▷ Public constants | 4 | 100.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
81 compressed PNG files occupy 0.08MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/letter_m.png | 0.33KB | 0.36KB | 0.00% |
css/images/marker-icon-2x.png | 2.41KB | 2.52KB | 0.00% |
css/images/marker-icon-green.png | 1.78KB | 1.58KB | ▼ 11.42% |
css/images/marker-icon-2x-grey.png | 3.45KB | 2.47KB | ▼ 28.41% |
css/images/marker-icon-yellow.png | 1.82KB | 1.56KB | ▼ 14.02% |