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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.17MB] [CPU: ▼5.95ms] Passed 4 tests
An overview of server-side resources used by LH OGP Meta
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 25.53 ▼13.11 |
Dashboard /wp-admin | 3.47 ▲0.17 | 45.11 ▼2.27 |
Posts /wp-admin/edit.php | 3.58 ▲0.23 | 46.01 ▼1.77 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.19 | 83.70 ▼6.64 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 36.27 ▲0.90 |
OGP Meta Tags /wp-admin/options-general.php?page=lh-ogp-meta-tags/lh-ogp-meta-tags.php | 3.36 | 28.40 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
LH OGP Meta: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,822 ▲76 | 13.26 ▼1.03 | 1.68 ▼0.10 | 42.53 ▼4.58 |
Dashboard /wp-admin | 2,213 ▲25 | 4.88 ▼1.01 | 107.00 ▼10.41 | 41.70 ▼4.31 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.02 ▲0.00 | 35.55 ▼10.14 | 29.35 ▼4.91 |
Add New Post /wp-admin/post-new.php | 6,267 ▲4,734 | 26.02 ▲3.04 | 916.55 ▲267.16 | 40.69 ▼18.77 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.24 ▲0.01 | 95.71 ▼8.21 | 42.97 ▼0.22 |
OGP Meta Tags /wp-admin/options-general.php?page=lh-ogp-meta-tags/lh-ogp-meta-tags.php | 804 | 2.03 | 24.11 | 25.23 |
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
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=lh-ogp-meta-tags/lh-ogp-meta-tags.php
- > Notice in wp-content/plugins/lh-ogp-meta-tags/partials/option-settings.php+21
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/lh-ogp-meta-tags/lh-ogp-meta-tags.php:568
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/lh-ogp-meta-tags/partials/option-settings.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/lh-ogp-meta-tags/includes/multi-post-thumbnails.php:429
- > 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
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Requires at least: Version format is invalid
lh-ogp-meta-tags/lh-ogp-meta-tags.php Passed 13 tests
This is the main PHP file of "LH OGP Meta" version 1.73, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
47 characters long description:
Customise your OGP meta tags the LocalHero way.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin689 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 358 | 151 | 574 |
JavaScript | 3 | 21 | 14 | 115 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 51.50 |
▷ Minimum class complexity | 47.00 |
▷ Maximum class complexity | 56.00 |
Average method complexity | 3.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 46 | |
▷ Static methods | 6 | 13.04% |
▷ Public methods | 31 | 67.39% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 15 | 32.61% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin