Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.33MB] [CPU: ▼8.02ms] Passed 4 tests
This is a short check of server-side resources used by WP OpenData
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.76 ▲0.29 | 50.05 ▲14.60 |
Dashboard /wp-admin | 3.68 ▲0.37 | 53.07 ▲6.69 |
Posts /wp-admin/edit.php | 3.73 ▲0.37 | 47.59 ▲2.43 |
Add New Post /wp-admin/post-new.php | 3.52 ▼2.36 | 39.49 ▼48.52 |
Media Library /wp-admin/upload.php | 3.60 ▲0.37 | 41.07 ▲7.32 |
Data Formats /wp-admin/edit-tags.php?taxonomy=opendata-data-format&post_type=dataset | 3.61 | 46.30 |
Organizations /wp-admin/edit-tags.php?taxonomy=opendata-organization-owner&post_type=dataset | 3.59 | 41.59 |
All Project /wp-admin/edit.php?post_type=project | 3.64 | 39.82 |
All Datasets /wp-admin/edit.php?post_type=dataset | 3.64 | 39.32 |
Tags /wp-admin/edit-tags.php?taxonomy=opendata-tags&post_type=project | 3.59 | 37.13 |
Categories /wp-admin/edit-tags.php?taxonomy=opendata-category&post_type=project | 3.59 | 39.12 |
Add New /wp-admin/post-new.php?post_type=dataset | 3.52 | 38.05 |
Categories /wp-admin/edit-tags.php?taxonomy=opendata-category&post_type=dataset | 3.59 | 40.22 |
WP OpenData /wp-admin/options-general.php?page=wp-opendata-settings | 3.61 | 39.76 |
Tags /wp-admin/edit-tags.php?taxonomy=opendata-tags&post_type=dataset | 3.59 | 40.16 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
opendata-data-format_children |
db_upgraded |
Browser metrics Passed 4 tests
WP OpenData: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,879 ▲118 | 14.14 ▼0.21 | 1.81 ▲0.17 | 43.71 ▼0.06 |
Dashboard /wp-admin | 2,277 ▲100 | 5.61 ▼0.04 | 92.95 ▲6.43 | 41.66 ▲1.05 |
Posts /wp-admin/edit.php | 2,182 ▲82 | 2.04 ▲0.03 | 34.91 ▲0.91 | 32.61 ▼6.12 |
Add New Post /wp-admin/post-new.php | 1,593 ▲65 | 23.08 ▲0.05 | 679.63 ▲47.34 | 55.99 ▲7.92 |
Media Library /wp-admin/upload.php | 1,479 ▲76 | 4.19 ▼0.03 | 95.12 ▼2.05 | 43.09 ▼0.86 |
Data Formats /wp-admin/edit-tags.php?taxonomy=opendata-data-format&post_type=dataset | 2,084 | 2.13 | 30.30 | 48.75 |
Organizations /wp-admin/edit-tags.php?taxonomy=opendata-organization-owner&post_type=dataset | 1,328 | 2.24 | 26.53 | 32.22 |
All Project /wp-admin/edit.php?post_type=project | 1,202 | 1.97 | 31.35 | 31.29 |
All Datasets /wp-admin/edit.php?post_type=dataset | 1,218 | 1.91 | 30.46 | 29.75 |
Tags /wp-admin/edit-tags.php?taxonomy=opendata-tags&post_type=project | 1,331 | 2.12 | 25.90 | 29.18 |
Categories /wp-admin/edit-tags.php?taxonomy=opendata-category&post_type=project | 1,353 | 2.12 | 26.86 | 28.76 |
Add New /wp-admin/post-new.php?post_type=dataset | 3,260 | 8.01 | 173.13 | 71.39 |
Categories /wp-admin/edit-tags.php?taxonomy=opendata-category&post_type=dataset | 1,353 | 2.25 | 28.31 | 31.13 |
WP OpenData /wp-admin/options-general.php?page=wp-opendata-settings | 1,671 | 5.66 | 102.79 | 53.74 |
Tags /wp-admin/edit-tags.php?taxonomy=opendata-tags&post_type=dataset | 1,325 | 2.12 | 27.78 | 29.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- opendata-data-format_children
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for 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=dataset
- > Notice in wp-content/plugins/wp-opendata/admin.php+570
Undefined index: post_type
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 12× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function query_posts() in wp-content/plugins/wp-opendata/templates/single-project.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function query_posts() in wp-content/plugins/wp-opendata/templates/single-dataset.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function get_posts() in wp-content/plugins/wp-opendata/export.php:41
- > PHP Fatal error
Uncaught Error: Call to undefined function post_class() in wp-content/plugins/wp-opendata/templates/content-dataset.php:8
- > PHP Warning
array_merge(): Expected parameter 1 to be an array, null given in wp-content/plugins/wp-opendata/templates/single-project.php on line 9
- > PHP Warning
array_merge(): Expected parameter 1 to be an array, null given in wp-content/plugins/wp-opendata/templates/single-dataset.php on line 9
- > PHP Notice
Trying to get property 'query_vars' of non-object in wp-content/plugins/wp-opendata/templates/single-project.php on line 9
- > PHP Warning
Use of undefined constant get_the_term_list - assumed 'get_the_term_list' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-opendata/templates/content-dataset.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function post_class() in wp-content/plugins/wp-opendata/templates/content-project.php:8
- > PHP Warning
Use of undefined constant get_the_term_list - assumed 'get_the_term_list' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-opendata/templates/content-project.php on line 8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
1 plugin tags: opendata
wp-opendata/wp-opendata.php 85% from 13 tests
The principal PHP file in "WP OpenData" v. 1.1 is loaded by WordPress automatically on each request
It is important to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Description: Please don't use more than 140 characters for the plugin description (currently 145 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected1,950 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 249 | 267 | 1,512 |
PO File | 1 | 180 | 417 | 418 |
CSS | 2 | 1 | 1 | 20 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 41 | |
▷ Named functions | 41 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin