Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▼0.15MB] [CPU: ▼13.62ms] Passed 4 tests
This is a short check of server-side resources used by LH RDF
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▼0.61 | 19.24 ▼18.94 |
Dashboard /wp-admin | 3.33 ▼0.02 | 44.67 ▼14.09 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 44.00 ▼7.38 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 77.51 ▼14.08 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 37.23 ▲2.05 |
LH Rdf Mappings /wp-admin/options-general.php?page=lh-rdf/library/relationships.php | 3.19 | 28.68 |
Server storage [IO: ▲0.70MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 57 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for LH RDF
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,809 ▲63 | 14.72 ▲0.01 | 1.67 ▲0.01 | 38.16 ▼1.39 |
Dashboard /wp-admin | 2,202 ▲22 | 5.63 ▲0.02 | 82.42 ▼4.17 | 39.17 ▼2.66 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 1.99 ▲0.00 | 35.50 ▼5.30 | 35.11 ▼4.88 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.19 ▼0.37 | 644.45 ▲39.99 | 58.49 ▲4.81 |
Media Library /wp-admin/upload.php | 1,404 ▲1 | 4.20 ▼0.00 | 94.25 ▲0.65 | 39.90 ▼5.91 |
LH Rdf Mappings /wp-admin/options-general.php?page=lh-rdf/library/relationships.php | 672 | 1.12 | 6.34 | 18.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
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 fix the following
- 37× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'EasyRdf_Literal' not found in wp-content/plugins/lh-rdf/library/EasyRdf/Literal/XML.php:46
- > PHP Fatal error
Uncaught Error: Class 'EasyRdf_Literal' not found in wp-content/plugins/lh-rdf/library/EasyRdf/Literal/Boolean.php:46
- > PHP Fatal error
Uncaught Error: Class 'EasyRdf_Parser' not found in wp-content/plugins/lh-rdf/library/EasyRdf/Parser/JsonLdImplementation.php:46
- > PHP Fatal error
Uncaught Error: Class 'EasyRdf_Serialiser_RdfPhp' not found in wp-content/plugins/lh-rdf/library/EasyRdf/Serialiser/Json.php:46
- > PHP Fatal error
Uncaught Error: Class 'EasyRdf_Literal' not found in wp-content/plugins/lh-rdf/library/EasyRdf/Literal/Integer.php:46
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lh-rdf/lh-rdf.php:498
- > PHP Fatal error
Uncaught Error: Class 'EasyRdf_Parser' not found in wp-content/plugins/lh-rdf/library/EasyRdf/Parser/RdfPhp.php:48
- > PHP Fatal error
Uncaught Error: Class 'EasyRdf_Parser_RdfPhp' not found in wp-content/plugins/lh-rdf/library/EasyRdf/Parser/Arc.php:45
- > PHP Fatal error
Uncaught Error: Class 'EasyRdf_Literal' not found in wp-content/plugins/lh-rdf/library/EasyRdf/Literal/Date.php:46
- > PHP Fatal error
Uncaught Error: Class 'EasyRdf_Resource' not found in wp-content/plugins/lh-rdf/library/EasyRdf/Collection.php:50
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: feeds, localhero, semantic web, rdf, feed...
lh-rdf/lh-rdf.php Passed 13 tests
The principal PHP file in "LH RDF" v. 1.21 is loaded by WordPress automatically on each request
42 characters long description:
Adds a semantic/SIOC RDF feed to Wordpress
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin12,031 lines of code in 56 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 56 | 2,504 | 7,416 | 12,031 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
The following items need your attention
- Method cyclomatic complexity has to be reduced to less than 100 (currently 109)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.58 |
Average class complexity | 43.72 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 923.00 |
Average method complexity | 4.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 109.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 58 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 58 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 618 | |
▷ Static methods | 96 | 15.53% |
▷ Public methods | 432 | 69.90% |
▷ Protected methods | 168 | 27.18% |
▷ Private methods | 18 | 2.91% |
Functions | 27 | |
▷ Named functions | 22 | 81.48% |
▷ Anonymous functions | 5 | 18.52% |
Constants | 21 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 21 | 100.00% |
▷ Public constants | 21 | 100.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
There are no PNG files in this plugin