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
The following installer errors require your attention
- The plugin cannot be installed
- > Warning in wp-content/plugins/lh-tools/lh-tools.php+394
rmdir(arc): No such file or directory
Server metrics [RAM: ▼1.75MB] [CPU: ▼56.35ms] Passed 4 tests
Server-side resources used by LH Tools
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.23 ▼1.23 | 5.39 ▼45.45 |
Dashboard /wp-admin | 2.25 ▼1.05 | 6.29 ▼42.60 |
Posts /wp-admin/edit.php | 2.25 ▼1.10 | 7.53 ▼43.24 |
Add New Post /wp-admin/post-new.php | 2.25 ▼3.63 | 6.56 ▼94.11 |
Media Library /wp-admin/upload.php | 2.25 ▼0.97 | 6.28 ▼25.91 |
Server storage [IO: ▲1.18MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 332 new files
Database: no new tables, 12 new options
New WordPress options |
---|
rdf_tools_endpoint_read_key |
rdf_tools_endpoint_max_limit |
rdf_tools_endpoint_active |
widget_recent-comments |
rdf_tools_endpoint_write_key |
rdf_tools_endpoint_src_file |
widget_recent-posts |
can_compress_scripts |
rdf_tools_endpoint_features |
db_upgraded |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for LH Tools
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲72 | 13.23 ▼1.07 | 5.07 ▲2.83 | 41.72 ▼7.71 |
Dashboard /wp-admin | 2,213 ▲25 | 4.83 ▼0.10 | 102.47 ▼10.61 | 41.61 ▼2.19 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.02 ▲0.00 | 39.67 ▼1.49 | 35.28 ▼0.63 |
Add New Post /wp-admin/post-new.php | 1,545 ▲28 | 18.71 ▲1.18 | 614.87 ▼16.95 | 55.54 ▲5.08 |
Media Library /wp-admin/upload.php | 1,392 ▲10 | 4.17 ▼0.02 | 94.64 ▲2.41 | 42.62 ▲3.69 |
LH Tools /wp-admin/lh-tools.php | 26 | 0.44 | 0.15 | 13.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > User deprecated in wp-includes/functions.php+5453
Function register_sidebar_widget is deprecated since version 2.8.0! Use wp_register_sidebar_widget() instead.
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
The following issues need your attention
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/lh-tools/ping.php
- 100× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'ARC2' not found in wp-content/plugins/lh-tools/arc/serializers/ARC2_RSS10Serializer.php:13
- > PHP Fatal error
Uncaught Error: Class 'Tests\\db_adapter_depended\\sparql_1_1_tests\\ComplianceTest' not found in wp-content/plugins/lh-tools/arc/tests/db_adapter_depended/sparql_1_1_tests/DropTest.php:12
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/lh-tools/arc/tests/ARC2_TestCase.php:7
- > PHP Fatal error
Uncaught Error: Class 'ARC2' not found in wp-content/plugins/lh-tools/arc/parsers/ARC2_LegacyXMLParser.php:11
- > PHP Fatal error
Uncaught Error: Class 'Tests\\ARC2_TestCase' not found in wp-content/plugins/lh-tools/arc/tests/db_adapter_depended/store/query/InsertIntoQueryTest.php:10
- > PHP Fatal error
Uncaught Error: Class 'ARC2' not found in wp-content/plugins/lh-tools/arc/extractors/ARC2_RdfaExtractor.php:11
- > PHP Fatal error
Uncaught Error: Class 'ARC2' not found in wp-content/plugins/lh-tools/arc/serializers/ARC2_TurtleSerializer.php:12
- > PHP Fatal error
Uncaught Error: Class 'ARC2' not found in wp-content/plugins/lh-tools/arc/parsers/ARC2_SemHTMLParser.php:11
- > PHP Fatal error
Uncaught Error: Class 'Tests\\ARC2_TestCase' not found in wp-content/plugins/lh-tools/arc/tests/db_adapter_depended/store/ARC2_StoreInsertQueryHandlerTest.php:7
- > PHP Fatal error
Uncaught Error: Class 'Tests\\ARC2_TestCase' not found in wp-content/plugins/lh-tools/arc/tests/unit/store/ARC2_StoreEndpointTest.php:8
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
- > GET request to /wp-admin/lh-tools.php
- > Network (severe)
wp-admin/lh-tools.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: json, skos, sparql, rdf, api...
lh-tools/lh-tools.php Passed 13 tests
The main PHP file in "LH Tools" ver. 0.15 adds more information about the plugin and also serves as the entry point for this plugin
55 characters long description:
RDF Storage and related tools. Requires the ARC Toolkit
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin23,693 lines of code in 240 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 109 | 3,410 | 2,779 | 19,933 |
XML | 25 | 84 | 6 | 1,895 |
JavaScript | 2 | 125 | 2 | 598 |
YAML | 11 | 97 | 10 | 447 |
Ruby | 81 | 28 | 22 | 353 |
Markdown | 4 | 83 | 0 | 180 |
JSON | 2 | 9 | 0 | 132 |
HTML | 1 | 71 | 0 | 100 |
Ant | 1 | 5 | 0 | 17 |
Dockerfile | 1 | 8 | 5 | 15 |
make | 1 | 3 | 0 | 13 |
INI | 1 | 2 | 21 | 8 |
SQL | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 35.22 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 476.00 |
Average method complexity | 3.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 73.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 99 | |
▷ Abstract classes | 3 | 3.03% |
▷ Concrete classes | 96 | 96.97% |
▷ Final classes | 0 | 0.00% |
Methods | 1,308 | |
▷ Static methods | 48 | 3.67% |
▷ Public methods | 1,244 | 95.11% |
▷ Protected methods | 64 | 4.89% |
▷ Private methods | 0 | 0.00% |
Functions | 47 | |
▷ Named functions | 39 | 82.98% |
▷ Anonymous functions | 8 | 17.02% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/magnify_icon.png | 1.22KB | 0.79KB | ▼ 34.86% |
images/question_mark_thumbnail-150x150.png | 7.79KB | 3.94KB | ▼ 49.42% |