Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▼0.27MB] [CPU: ▼167.59ms] Passed 4 tests
An overview of server-side resources used by Simple metadata
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.24 ▲0.40 | 28.35 ▼7.02 |
Dashboard /wp-admin | 3.38 ▲0.33 | 28.13 ▼19.15 |
Posts /wp-admin/edit.php | 3.38 ▲0.28 | 26.95 ▼14.68 |
Add New Post /wp-admin/post-new.php | 3.38 ▼2.05 | 25.22 ▼629.22 |
Media Library /wp-admin/upload.php | 3.38 ▲0.38 | 27.14 ▼7.29 |
Organization /wp-admin/admin.php?page=smd_set_page_organization | 3.38 | 27.08 |
Settings /wp-admin/admin.php?page=smd_set_page | 3.38 | 28.55 |
Server storage [IO: ▲0.69MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 71 new files
Database: no new tables, 2 new options
New WordPress options |
---|
smd_organization_logo_image_id |
smd_website_blog_type |
Browser metrics Passed 4 tests
Checking browser requirements for Simple metadata
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,941 ▲345 | 17.52 ▲1.54 | 9.74 ▼1.29 | 44.73 ▼0.26 |
Dashboard /wp-admin | 3,198 ▲264 | 8.01 ▲2.01 | 166.57 ▲1.54 | 108.53 ▼10.71 |
Posts /wp-admin/edit.php | 3,253 ▲514 | 4.66 ▲1.94 | 91.62 ▲22.56 | 82.73 ▼9.39 |
Add New Post /wp-admin/post-new.php | 3,694 ▲2,196 | 15.38 ▼3.44 | 463.96 ▲77.41 | 104.16 ▼1.09 |
Media Library /wp-admin/upload.php | 1,845 ▲38 | 4.84 ▼0.19 | 114.39 ▼36.74 | 117.03 ▼3.83 |
Organization /wp-admin/admin.php?page=smd_set_page_organization | 1,429 | 4.18 | 86.15 | 60.41 |
Settings /wp-admin/admin.php?page=smd_set_page | 1,584 | 4.33 | 87.26 | 78.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The plugin did not uninstall gracefully
- > Warning in wp-includes/class-wp-hook.php+303
call_user_func_array() expects parameter 1 to be a valid callback, function 'activation_warnings' not found or invalid function name
Smoke tests 25% 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
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=smd_set_page
- > Warning in wp-includes/class-wp-hook.php+303
call_user_func_array() expects parameter 1 to be a valid callback, function 'activation_warnings' not found or invalid function name
SRP 0% 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
- 4× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/simple-metadata/smd-pages-related-content/smd-pages-related-content.php
- > /wp-content/plugins/simple-metadata/network-admin/smd-network-admin.php
- > /wp-content/plugins/simple-metadata/simple-metadata.php
- > /wp-content/plugins/simple-metadata/smd-posts-related-content/smd-posts-related-content.php
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-metadata/admin/smd-site-cpt.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-metadata/smd-frontpage-related-content/smd-frontpage-related-content.php:105
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-metadata/admin/smd-set-page-metaboxes.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-metadata/symbionts/custom-metadata/custom_metadata.php:106
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-metadata/admin/smd-googleImage-box.php:30
- > 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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
8 plugin tags: simple metadata, metadata, pressbooks, structured data, schemaorg...
simple-metadata/simple-metadata.php Passed 13 tests
The primary PHP file in "Simple metadata" version 1.6 is used by WordPress to initiate all plugin functionality
94 characters long description:
This plugin provides auto-generated metadata on the basis of default WP web-pages information.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected4,717 lines of code in 36 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 642 | 807 | 2,645 |
CSS | 3 | 150 | 62 | 1,323 |
Markdown | 14 | 262 | 0 | 523 |
JavaScript | 6 | 56 | 45 | 226 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 241.00 |
▷ Minimum class complexity | 241.00 |
▷ Maximum class complexity | 241.00 |
Average method complexity | 4.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 71.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 79 | |
▷ Static methods | 1 | 1.27% |
▷ Public methods | 79 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 69 | |
▷ Named functions | 67 | 97.10% |
▷ Anonymous functions | 2 | 2.90% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
24 compressed PNG files occupy 0.30MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
doc/images/structured-data-site.png | 41.38KB | 45.53KB | 0.00% |
symbionts/custom-metadata/css/images/ui-bg_glass_65_ffffff_1x400.png | 0.08KB | 0.10KB | 0.00% |
symbionts/custom-metadata/css/select2.png | 0.51KB | 0.99KB | 0.00% |
doc/images/settings-mu.png | 14.27KB | 15.39KB | 0.00% |
doc/images/settings-post.png | 36.48KB | 39.49KB | 0.00% |