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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.09MB] [CPU: ▼4.50ms] Passed 4 tests
Analyzing server-side resources used by OpenData Generator
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.09 | 43.53 ▲1.13 |
Dashboard /wp-admin | 3.40 ▲0.09 | 47.65 ▼9.78 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 45.61 ▼1.46 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 85.15 ▼7.87 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 36.23 ▲2.18 |
Create Mapping /wp-admin/post-new.php?post_type=opendata-generator | 3.38 | 43.05 |
Schema Settings /wp-admin/admin.php?page=odg-schema | 3.29 | 33.03 |
Opendata Generator /wp-admin/admin.php?page=odg-admin-menu | 3.28 | 31.28 |
Mapping List /wp-admin/edit.php?post_type=opendata-generator | 3.36 | 35.25 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for OpenData Generator
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲74 | 14.25 ▼0.11 | 1.73 ▲0.07 | 44.20 ▲1.03 |
Dashboard /wp-admin | 2,220 ▲43 | 5.52 ▼0.06 | 85.93 ▼17.72 | 40.21 ▼2.36 |
Posts /wp-admin/edit.php | 2,134 ▲34 | 2.02 ▲0.03 | 37.69 ▲1.41 | 33.34 ▼3.14 |
Add New Post /wp-admin/post-new.php | 1,551 ▲25 | 23.36 ▲0.20 | 684.43 ▼1.57 | 61.62 ▲10.59 |
Media Library /wp-admin/upload.php | 1,431 ▲31 | 4.21 ▼0.07 | 104.82 ▼2.03 | 44.46 ▼3.04 |
Create Mapping /wp-admin/post-new.php?post_type=opendata-generator | 1,579 | 2.58 | 50.35 | 46.44 |
Schema Settings /wp-admin/admin.php?page=odg-schema | 830 | 2.01 | 22.92 | 45.54 |
Opendata Generator /wp-admin/admin.php?page=odg-admin-menu | 851 | 1.99 | 21.60 | 37.08 |
Mapping List /wp-admin/edit.php?post_type=opendata-generator | 1,092 | 1.97 | 32.07 | 30.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- 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)
Everything seems fine, however 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 take a closer look at the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/opendata-generator/opendata-generator.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
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:
- Screenshots: Screenshot #1 (No Images) image not found
opendata-generator/opendata-generator.php Passed 13 tests
"OpenData Generator" version 3.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
75 characters long description:
This Plugin can make jsonld for Linked Open Data. Using CustomField Plugin.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected393 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 41 | 64 | 393 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 6.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 2.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 20 | 80.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 20.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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin