Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▲1.42ms] Passed 4 tests
Analyzing server-side resources used by Embed OSM
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 43.35 ▼1.31 |
Dashboard /wp-admin | 3.38 ▲0.08 | 49.57 ▼4.42 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 55.62 ▲5.86 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 97.31 ▲5.53 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 39.58 ▲8.10 |
Embed OSM /wp-admin/options-general.php?page=embed_osm | 3.28 | 35.67 |
Server storage [IO: ▲0.87MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 75 new files
Database: no new tables, 14 new options
New WordPress options |
---|
embed_osm_width |
can_compress_scripts |
embed_osm_marker |
widget_recent-comments |
embed_osm_lon |
embed_osm_lat |
embed_osm_zoom |
theysaidso_admin_options |
widget_recent-posts |
embed_osm_height |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Embed OSM
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲47 | 14.24 ▼0.03 | 1.98 ▲0.12 | 44.06 ▲0.33 |
Dashboard /wp-admin | 2,199 ▲28 | 5.52 ▼0.02 | 86.90 ▼29.11 | 42.39 ▼0.04 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 1.96 ▼0.20 | 39.72 ▲1.89 | 37.49 ▲0.50 |
Add New Post /wp-admin/post-new.php | 6,337 ▲4,802 | 22.33 ▲4.21 | 1,004.32 ▲320.61 | 62.95 ▼13.02 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.21 ▲0.05 | 100.44 ▼2.52 | 48.83 ▲6.70 |
Embed OSM /wp-admin/options-general.php?page=embed_osm | 976 | 4.30 | 57.50 | 32.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/embed-osm/embed-osm.php:38
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 97% 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 your attention:
- Screenshots: Please a description for screenshot #2 in embed-osm/assets to your readme.txt
embed-osm/embed-osm.php Passed 13 tests
Analyzing the main PHP file in "Embed OSM" version 1.2
37 characters long description:
Embed OpenStreetMap on the page/post.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin2,429 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 23 | 67 | 1,408 |
CSS | 8 | 46 | 25 | 538 |
PHP | 1 | 38 | 39 | 447 |
PO File | 1 | 0 | 0 | 36 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 29.00 |
▷ Minimum class complexity | 29.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 4.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.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 | 9 | |
▷ Static methods | 1 | 11.11% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
54 compressed PNG files occupy 0.07MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
openlayers/theme/default/img/drag-rectangle-on.png | 1.02KB | 1.09KB | 0.00% |
openlayers/img/east-mini.png | 0.33KB | 0.32KB | ▼ 5.56% |
openlayers/img/zoombar.png | 0.34KB | 0.24KB | ▼ 29.71% |
openlayers/img/layer-switcher-maximize.png | 0.40KB | 0.35KB | ▼ 11.60% |
openlayers/theme/default/img/view_next_off.png | 1.46KB | 1.54KB | 0.00% |