Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
- The plugin cannot be installed
- > Warning in wp-content/plugins/all-in-one-metadata/admin/adminFunctions/class-pressbooks-metadata-site-cpt.php+148
include_once(wp-content/plugins/pressbooks/pressbooks.php): failed to open stream: No such file or directory
Server metrics [RAM: ▼1.94MB] [CPU: ▼56.81ms] Passed 4 tests
An overview of server-side resources used by All in one metadata
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.04 ▼1.42 | 3.98 ▼32.29 |
Dashboard /wp-admin | 2.06 ▼1.24 | 5.43 ▼41.44 |
Posts /wp-admin/edit.php | 2.07 ▼1.29 | 5.76 ▼56.98 |
Add New Post /wp-admin/post-new.php | 2.06 ▼3.82 | 4.85 ▼96.51 |
Media Library /wp-admin/upload.php | 2.06 ▼1.16 | 7.78 ▼27.09 |
General Settings /wp-admin/admin.php?page=pressbooks_metadata_settings | 2.07 | 5.20 |
Site-Meta /wp-admin/post-new.php?post_type=site-meta | 2.07 | 6.58 |
Site Metadata /wp-admin/edit.php?post_type=site-meta | 2.07 | 5.46 |
Post Metadata /wp-admin/admin.php?page=post_meta_settings | 2.07 | 6.64 |
Server storage [IO: ▲0.72MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 132 new files
Database: no new tables, 14 new options
New WordPress options |
---|
corporation_type_site-meta_level_thing_properties_dis |
theysaidso_admin_options |
schema_properties_corporation_type_site-meta_level |
widget_recent-comments |
parent_filter_settings |
post_schemaTypes\Pressbooks_Metadata_Organization |
corporation_type_site-meta_level_organization_properties_dis |
widget_theysaidso_widget |
schema_locations |
site-meta_schemaTypes\Pressbooks_Metadata_Organization |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for All in one metadata
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,940 ▲194 | 13.60 ▼0.78 | 5.17 ▲3.37 | 41.59 ▼1.70 |
Dashboard /wp-admin | 2,244 ▲53 | 5.90 ▲1.04 | 114.76 ▲12.40 | 39.28 ▲0.89 |
Posts /wp-admin/edit.php | 2,459 ▲367 | 3.51 ▲1.54 | 109.94 ▲73.28 | 32.89 ▲0.19 |
Add New Post /wp-admin/post-new.php | 1,577 ▲55 | 23.47 ▲0.34 | 712.22 ▲58.01 | 36.25 ▼21.47 |
Media Library /wp-admin/upload.php | 1,426 ▲38 | 4.16 ▼0.04 | 87.32 ▼23.07 | 45.05 ▼1.27 |
General Settings /wp-admin/admin.php?page=pressbooks_metadata_settings | 2,468 | 2.42 | 52.29 | 31.79 |
Site-Meta /wp-admin/post-new.php?post_type=site-meta | 1,458 | 4.01 | 63.62 | 28.07 |
Site Metadata /wp-admin/edit.php?post_type=site-meta | 1,431 | 3.50 | 51.42 | 28.19 |
Post Metadata /wp-admin/admin.php?page=post_meta_settings | 1,006 | 2.15 | 36.07 | 29.05 |
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
Please fix the following items
- This plugin cannot be uninstalled
- > Warning in wp-content/plugins/all-in-one-metadata/admin/adminFunctions/class-pressbooks-metadata-site-cpt.php+148
include_once(wp-content/plugins/pressbooks/pressbooks.php): failed to open stream: No such file or directory
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
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
- 627 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=post_meta_settings
- > Warning in wp-content/plugins/all-in-one-metadata/admin/adminFunctions/class-pressbooks-metadata-site-cpt.php+148
include_once(wp-content/plugins/pressbooks/pressbooks.php): failed to open stream: No such file or directory
- 627 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=post_meta_settings
- > Warning in wp-content/plugins/all-in-one-metadata/admin/adminFunctions/class-pressbooks-metadata-site-cpt.php+148
include_once(): Failed opening 'wp-content/plugins/pressbooks/pressbooks.php' for inclusion (include_path='.:/usr/share/php')
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 fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/all-in-one-metadata/public/partials/pressbooks-metadata-public-display.php
- 53× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/all-in-one-metadata/symbionts/custom-metadata/custom_metadata.php:106
- > PHP Fatal error
Uncaught Error: Class 'schemaTypes\\Pressbooks_Metadata_Type' not found in wp-content/plugins/all-in-one-metadata/admin/schemaTypes/creativeWorks/class-pressbooks-metadata-photograph.php:20
- > PHP Fatal error
Uncaught Error: Class 'schemaTypes\\Pressbooks_Metadata_Type' not found in wp-content/plugins/all-in-one-metadata/admin/schemaTypes/creativeWorks/class-pressbooks-metadata-message.php:19
- > PHP Fatal error
Uncaught Error: Class 'schemaTypes\\Pressbooks_Metadata_Type' not found in wp-content/plugins/all-in-one-metadata/admin/schemaTypes/creativeWorks/class-pressbooks-metadata-mediaObject.php:20
- > PHP Fatal error
Uncaught Error: Class 'schemaTypes\\Pressbooks_Metadata_Type' not found in wp-content/plugins/all-in-one-metadata/admin/schemaTypes/creativeWorks/class-pressbooks-metadata-dataset.php:20
- > PHP Fatal error
Uncaught Error: Class 'schemaTypes\\Pressbooks_Metadata_Type' not found in wp-content/plugins/all-in-one-metadata/admin/schemaTypes/organization/class-pressbooks-metadata-corporation.php:19
- > PHP Fatal error
Uncaught Error: Class 'schemaTypes\\Pressbooks_Metadata_Type' not found in wp-content/plugins/all-in-one-metadata/admin/schemaTypes/creativeWorks/class-pressbooks-metadata-article.php:20
- > PHP Fatal error
Uncaught Error: Class 'schemaTypes\\Pressbooks_Metadata_Type' not found in wp-content/plugins/all-in-one-metadata/admin/schemaTypes/creativeWorks/class-pressbooks-metadata-howTo.php:20
- > PHP Fatal error
Uncaught Error: Class 'schemaTypes\\Pressbooks_Metadata_Type' not found in wp-content/plugins/all-in-one-metadata/admin/schemaTypes/organization/class-pressbooks-metadata-governmentOrganization.php:20
- > PHP Fatal error
Uncaught Error: Class 'schemaTypes\\Pressbooks_Metadata_Type' not found in wp-content/plugins/all-in-one-metadata/admin/schemaTypes/creativeWorks/class-pressbooks-metadata-webPage.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: metadata, schema, schemaorg, rich snippets, structured data
all-in-one-metadata/all-in-one-metadata.php Passed 13 tests
The primary PHP file in "All in one metadata" version 1.0.0 is used by WordPress to initiate all plugin functionality
85 characters long description:
This plugin adds metadata to wordpress and also has support for the pressbooks plugin
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected8,403 lines of code in 106 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 95 | 1,672 | 4,758 | 6,562 |
CSS | 5 | 161 | 74 | 1,396 |
JavaScript | 5 | 80 | 92 | 436 |
Markdown | 1 | 6 | 0 | 9 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 10.08 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 241.00 |
Average method complexity | 2.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 71.00 |
Code structure | ||
---|---|---|
Namespaces | 9 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 83 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 83 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 381 | |
▷ Static methods | 17 | 4.46% |
▷ Public methods | 361 | 94.75% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 20 | 5.25% |
Functions | 19 | |
▷ Named functions | 7 | 36.84% |
▷ Anonymous functions | 12 | 63.16% |
Constants | 12 | |
▷ Global constants | 5 | 41.67% |
▷ Class constants | 7 | 58.33% |
▷ Public constants | 7 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
17 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
symbionts/custom-metadata/css/images/ui-icons_888888_256x240.png | 4.10KB | 4.11KB | 0.00% |
symbionts/custom-metadata/css/images/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |
symbionts/custom-metadata/css/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.08KB | 0.08KB | 0.00% |
symbionts/custom-metadata/css/images/ui-icons_2e83ff_256x240.png | 4.10KB | 4.11KB | 0.00% |
symbionts/custom-metadata/css/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.11KB | 0.14KB | 0.00% |