Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/open-data-viewer-for-austria/ckanfunc.php+393
Function create_function() is deprecated
Server metrics [RAM: ▼1.81MB] [CPU: ▼59.75ms] Passed 4 tests
Analyzing server-side resources used by Open Data Viewer for Austria
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.17 ▼1.29 | 6.14 ▼42.06 |
Dashboard /wp-admin | 2.19 ▼1.11 | 5.85 ▼50.43 |
Posts /wp-admin/edit.php | 2.19 ▼1.16 | 6.49 ▼48.50 |
Add New Post /wp-admin/post-new.php | 2.19 ▼3.69 | 6.55 ▼98.00 |
Media Library /wp-admin/upload.php | 2.19 ▼1.03 | 7.48 ▼30.97 |
Server storage [IO: ▲2.68MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 128 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_ckanwidget |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Open Data Viewer for Austria: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,106 ▲320 | 15.44 ▲1.26 | 30.38 ▲28.59 | 38.31 ▼10.95 |
Dashboard /wp-admin | 2,196 ▲19 | 5.61 ▲0.08 | 92.79 ▲2.09 | 40.60 ▼2.22 |
Posts /wp-admin/edit.php | 2,271 ▲171 | 6.79 ▲4.84 | 122.17 ▲87.72 | 37.81 ▲3.66 |
Add New Post /wp-admin/post-new.php | 6,525 ▲4,999 | 26.89 ▲3.30 | 1,038.29 ▲424.87 | 43.28 ▼9.91 |
Media Library /wp-admin/upload.php | 1,403 ▲6 | 4.23 ▲0.05 | 109.51 ▲6.94 | 48.24 ▲6.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/open-data-viewer-for-austria/ckanfunc.php+393
Function create_function() is deprecated
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- widget_ckanwidget
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% 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 everything seems fine, this is not 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
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/open-data-viewer-for-austria/formularshortcode.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/open-data-viewer-for-austria/formularwidget.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/open-data-viewer-for-austria/ckanfunc.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 16 tag instead of maximum 10
open-data-viewer-for-austria/ckanfunc.php 92% from 13 tests
The primary PHP file in "Open Data Viewer for Austria" version 1.0.7 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("open-data-viewer-for-austria.php" instead of "ckanfunc.php")
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
There were no executable files found in this plugin47,617 lines of code in 102 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 70 | 8,717 | 8,209 | 39,645 |
LESS | 1 | 16 | 41 | 3,938 |
CSS | 18 | 339 | 156 | 2,585 |
PHP | 7 | 120 | 132 | 1,126 |
HTML | 4 | 18 | 23 | 171 |
PO File | 2 | 60 | 90 | 152 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
13 PNG files occupy 0.19MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
recline/css-site/images/icons/white.png | 1.40KB | 0.38KB | ▼ 73.18% |
recline/vendor/leaflet/0.4.4/images/marker-icon.png | 2.46KB | 1.50KB | ▼ 38.98% |
recline/vendor/leaflet/0.4.4/images/layers.png | 3.85KB | 0.78KB | ▼ 79.77% |
recline/css-site/images/header-screen.png | 113.54KB | 38.83KB | ▼ 65.80% |
recline/css-site/images/zigzags.png | 1.90KB | 0.85KB | ▼ 54.99% |