Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.55MB] [CPU: ▼11.44ms] Passed 4 tests
A check of server-side resources used by WP-LDP
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 46.09 ▲2.30 |
Dashboard /wp-admin | 3.43 ▲0.12 | 58.70 ▲5.00 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 56.73 ▲0.37 |
Add New Post /wp-admin/post-new.php | 3.31 ▼2.58 | 48.31 ▼53.41 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 42.98 ▲6.36 |
Group /wp-admin/edit.php?post_type=ldp_resource&ldp_container=group | 3.37 | 36.96 |
Containers /wp-admin/edit-tags.php?taxonomy=ldp_container&post_type=ldp_resource | 3.36 | 48.76 |
Person /wp-admin/edit.php?post_type=ldp_resource&ldp_container=person | 3.37 | 45.09 |
Artwork /wp-admin/edit.php?post_type=ldp_resource&ldp_container=artwork | 3.37 | 38.73 |
Organization /wp-admin/edit.php?post_type=ldp_resource&ldp_container=organization | 3.37 | 40.50 |
Event /wp-admin/edit.php?post_type=ldp_resource&ldp_container=event | 3.37 | 40.51 |
WP-LDP Settings /wp-admin/options-general.php?page=wpldp | 3.32 | 42.90 |
Sites /wp-admin/edit-tags.php?taxonomy=ldp_site&post_type=ldp_resource | 3.35 | 38.75 |
Initiative /wp-admin/edit.php?post_type=ldp_resource&ldp_container=initiative | 3.37 | 39.26 |
Theme /wp-admin/edit.php?post_type=ldp_resource&ldp_container=theme | 3.37 | 41.98 |
Server storage [IO: ▲23.49MB] [DB: ▼0.32MB] 67% from 3 tests
How much does this plugin use your filesystem and database?
Please try to fix the following items
- There were 1 file (0.60KB) illegally modified outside of "wp-content/plugins/wp-ldp/" and "wp-content/uploads/"
- (modified) .htaccess
Filesystem: 1,244 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
wpldp_version |
ldp_container_children |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
WP-LDP: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,822 ▲33 | 14.38 ▲0.78 | 1.79 ▼3.44 | 47.90 ▼0.82 |
Dashboard /wp-admin | 2,258 ▲52 | 4.91 ▼0.94 | 122.97 ▲6.33 | 51.49 ▲7.92 |
Posts /wp-admin/edit.php | 2,154 ▲65 | 2.05 ▼0.00 | 37.82 ▼1.25 | 37.61 ▲5.02 |
Add New Post /wp-admin/post-new.php | 1,588 ▲55 | 21.81 ▼1.15 | 597.85 ▼90.59 | 56.08 ▼0.60 |
Media Library /wp-admin/upload.php | 1,471 ▲80 | 4.21 ▼0.02 | 96.17 ▼3.99 | 41.43 ▼1.72 |
Group /wp-admin/edit.php?post_type=ldp_resource&ldp_container=group | 1,432 | 5.84 | 85.29 | 32.24 |
Containers /wp-admin/edit-tags.php?taxonomy=ldp_container&post_type=ldp_resource | 1,991 | 2.14 | 30.34 | 35.39 |
Person /wp-admin/edit.php?post_type=ldp_resource&ldp_container=person | 1,432 | 5.90 | 83.19 | 30.37 |
Artwork /wp-admin/edit.php?post_type=ldp_resource&ldp_container=artwork | 1,426 | 5.84 | 57.93 | 28.83 |
Organization /wp-admin/edit.php?post_type=ldp_resource&ldp_container=organization | 1,426 | 5.82 | 62.48 | 27.78 |
Event /wp-admin/edit.php?post_type=ldp_resource&ldp_container=event | 1,423 | 5.96 | 57.79 | 27.12 |
WP-LDP Settings /wp-admin/options-general.php?page=wpldp | 874 | 2.02 | 23.65 | 29.33 |
Sites /wp-admin/edit-tags.php?taxonomy=ldp_site&post_type=ldp_resource | 1,353 | 2.14 | 27.37 | 29.33 |
Initiative /wp-admin/edit.php?post_type=ldp_resource&ldp_container=initiative | 1,426 | 5.82 | 63.46 | 30.71 |
Theme /wp-admin/edit.php?post_type=ldp_resource&ldp_container=theme | 1,426 | 5.83 | 62.16 | 28.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/wp-ldp/wp-ldp.php+717
Undefined index: primary
- This plugin did not uninstall successfully, leaving 8 options in the database
- widget_recent-posts
- widget_recent-comments
- wpldp_version
- can_compress_scripts
- widget_theysaidso_widget
- ldp_container_children
- theysaidso_admin_options
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- 7 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=ldp_resource&ldp_container=theme
- > User notice in wp-includes/functions.php+5905
Function WP_Scripts::localize was called incorrectly. The $l10n parameter must be an array. To pass arbitrary data to scripts, use the wp_add_inline_script() function instead. Please see Debugging in WordPress for more information. (This message was added in version 5.7.0.)
SRP 0% 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
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wp-ldp/wp-ldp.php
- > /wp-content/plugins/wp-ldp/public/index.php
- 8× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function WpLdp\\register_activation_hook() in wp-content/plugins/wp-ldp/class-site-taxonomy.php:32
- > PHP Fatal error
Uncaught Error: Call to undefined function WpLdp\\register_activation_hook() in wp-content/plugins/wp-ldp/class-container-taxonomy.php:32
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/wp-ldp/tests/test-resource-api.php:11
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/wp-ldp/tests/test-sample.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function WpLdp\\add_filter() in wp-content/plugins/wp-ldp/class-api.php:38
- > PHP Fatal error
Uncaught Error: Call to undefined function WpLdp\\add_action() in wp-content/plugins/wp-ldp/class-settings.php:30
- > PHP Fatal error
require_once(): Failed opening required '/tmp/wordpress-tests-lib/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-ldp/tests/bootstrap.php on line 14
- > PHP Warning
require_once(/tmp/wordpress-tests-lib/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/wp-ldp/tests/bootstrap.php on line 14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Screenshots: These screenshots do not have images: #1 (The settings menu item), #2 (The settings page with the container initialization option), #3 (The containers menu item), #4 (The default containers listing page), #5 (The default actor JSON Model), #6 (The resources menu item), #7 (The new resource editing page), #8 (The newly created resource edition form), #9 (The created resource generated JSON raw view)
wp-ldp/wp-ldp.php 92% from 13 tests
The primary PHP file in "WP-LDP" version 2.0.7 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin314,236 lines of code in 1,063 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 666 | 42,900 | 31,175 | 268,697 |
CSS | 33 | 598 | 274 | 14,665 |
Sass | 119 | 1,545 | 1,651 | 9,812 |
HTML | 92 | 1,107 | 15 | 6,721 |
JSON | 35 | 0 | 0 | 3,277 |
Markdown | 28 | 1,254 | 0 | 2,858 |
SVG | 5 | 0 | 1 | 2,492 |
PHP | 10 | 281 | 553 | 1,576 |
LESS | 13 | 28 | 34 | 1,510 |
TypeScript | 2 | 595 | 1,873 | 811 |
Handlebars | 35 | 81 | 3 | 657 |
Windows Module Definition | 5 | 88 | 0 | 437 |
XML | 8 | 6 | 0 | 363 |
PO File | 1 | 60 | 60 | 140 |
Bourne Shell | 2 | 24 | 7 | 105 |
YAML | 8 | 5 | 0 | 95 |
Bourne Again Shell | 1 | 2 | 1 | 20 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 18.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 53.00 |
Average method complexity | 3.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 60 | |
▷ Static methods | 5 | 8.33% |
▷ Public methods | 57 | 95.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 5.00% |
Functions | 5 | |
▷ Named functions | 1 | 20.00% |
▷ Anonymous functions | 4 | 80.00% |
Constants | 4 | |
▷ Global constants | 1 | 25.00% |
▷ Class constants | 3 | 75.00% |
▷ Public constants | 3 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
80 PNG files occupy 1.56MB with 0.73MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
library/js/select2/docs/vendor/images/flags/pa.png | 10.93KB | 4.55KB | ▼ 58.38% |
library/js/select2/docs/vendor/images/flags/ia.png | 6.94KB | 3.21KB | ▼ 53.75% |
public/library/jquery/jquery-ui-1.12.1/images/ui-icons_cc0000_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
library/js/select2/docs/vendor/images/flags/in.png | 6.82KB | 3.17KB | ▼ 53.59% |
assets/screenshot-5.png | 123.00KB | 46.97KB | ▼ 61.81% |