Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲3.79MB] [CPU: ▲26.68ms] Passed 4 tests
A check of server-side resources used by Web Stories
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 7.30 ▲3.83 | 61.18 ▲21.40 |
Dashboard /wp-admin | 7.10 ▲3.79 | 71.59 ▲25.77 |
Posts /wp-admin/edit.php | 7.17 ▲3.81 | 80.04 ▲33.41 |
Add New Post /wp-admin/post-new.php | 10.60 ▲4.71 | 128.87 ▲26.13 |
Media Library /wp-admin/upload.php | 6.97 ▲3.73 | 66.71 ▲34.69 |
Dashboard /wp-admin/edit.php?post_type=web-story&page=stories-dashboard | 9.16 | 76.25 |
Categories /wp-admin/edit-tags.php?taxonomy=web_story_category&post_type=web-story | 6.96 | 59.84 |
All Stories /wp-admin/edit.php?post_type=web-story | 7.07 | 63.52 |
Add New /wp-admin/post-new.php?post_type=web-story | 9.60 | 100.00 |
Tags /wp-admin/edit-tags.php?taxonomy=web_story_tag&post_type=web-story | 6.96 | 64.46 |
Server storage [IO: ▲17.20MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 1,638 new files
Database: no new tables, 9 new options
New WordPress options |
---|
web_stories_db_version |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
widget_web_stories_widget |
web_stories_previous_db_version |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Web Stories
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,896 ▲134 | 15.99 ▲1.71 | 1.58 ▼0.18 | 40.65 ▼4.99 |
Dashboard /wp-admin | 2,297 ▲120 | 7.51 ▲1.93 | 210.18 ▲116.62 | 41.20 ▼1.70 |
Posts /wp-admin/edit.php | 2,223 ▲126 | 6.26 ▲4.26 | 70.09 ▲32.85 | 36.29 ▼0.44 |
Add New Post /wp-admin/post-new.php | 1,534 ▲8 | 21.37 ▼1.79 | 713.50 ▲24.27 | 39.36 ▼24.96 |
Media Library /wp-admin/upload.php | 1,592 ▲192 | 8.48 ▲4.27 | 122.37 ▲14.55 | 41.01 ▼1.83 |
Dashboard /wp-admin/edit.php?post_type=web-story&page=stories-dashboard | 1,650 | 16.13 | 205.18 | 114.69 |
Categories /wp-admin/edit-tags.php?taxonomy=web_story_category&post_type=web-story | 1,391 | 5.94 | 52.44 | 30.39 |
All Stories /wp-admin/edit.php?post_type=web-story | 1,172 | 1.90 | 32.93 | 30.79 |
Explore Templates /wp-admin/edit.php?post_type=web-story&page=stories-dashboard#/templates-gallery | 1,650 | 15.97 | 208.59 | 58.02 |
Add New /wp-admin/post-new.php?post_type=web-story | 1,721 | 19.84 | 875.99 | 55.59 |
Settings /wp-admin/edit.php?post_type=web-story&page=stories-dashboard#/editor-settings | 1,618 | 6.10 | 187.32 | 48.59 |
Tags /wp-admin/edit-tags.php?taxonomy=web_story_tag&post_type=web-story | 1,366 | 5.86 | 58.80 | 32.85 |
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
- > Notice in wp-content/plugins/web-stories/uninstall.php+45
Constant WEBSTORIES_PLUGIN_FILE already defined
- The uninstall procedure has failed, leaving 9 options in the database
- web_stories_db_version
- theysaidso_admin_options
- widget_recent-posts
- widget_web_stories_widget
- web_stories_previous_db_version
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- db_upgraded
Smoke tests 25% 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 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
Almost there! Just fix the following items
- 4× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/web-stories/includes/templates/admin/edit-story.php
- > /wp-content/plugins/web-stories/includes/templates/admin/dashboard.php
- > /wp-content/plugins/web-stories/includes/templates/admin/activation-notice.php
- > /wp-content/plugins/web-stories/includes/templates/admin/experiments.php
- 1234× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Google\\Web_Stories_Dependencies\\AmpProject\\Validator\\Spec\\TagWithExtensionSpec' not found in wp-content/plugins/web-stories/third-party/vendor/ampproject/amp-toolbox/src/Validator/Spec/Tag/ScriptAmpMustache.php:26
- > PHP Fatal error
Uncaught Error: Class 'Google\\Web_Stories_Dependencies\\AmpProject\\Validator\\Spec\\Tag' not found in wp-content/plugins/web-stories/third-party/vendor/ampproject/amp-toolbox/src/Validator/Spec/Tag/AmpBrightcove.php:30
- > PHP Fatal error
Uncaught Error: Interface 'Google\\Web_Stories_Dependencies\\AmpProject\\Optimizer\\Error' not found in wp-content/plugins/web-stories/third-party/vendor/ampproject/amp-toolbox/src/Optimizer/Error/CannotPerformServerSideRendering.php:14
- > PHP Fatal error
Uncaught Error: Interface 'Google\\Web_Stories_Dependencies\\Sabberworm\\CSS\\Renderable' not found in wp-content/plugins/web-stories/third-party/vendor/sabberworm/php-css-parser/src/RuleSet/RuleSet.php:22
- > PHP Fatal error
Uncaught Error: Class 'Google\\Web_Stories_Dependencies\\AmpProject\\Validator\\Spec\\Tag' not found in wp-content/plugins/web-stories/third-party/vendor/ampproject/amp-toolbox/src/Validator/Spec/Tag/AmpImg.php:30
- > PHP Fatal error
Uncaught Error: Class 'Google\\Web_Stories_Dependencies\\AmpProject\\Validator\\Spec\\CssRuleset' not found in wp-content/plugins/web-stories/third-party/vendor/ampproject/amp-toolbox/src/Validator/Spec/CssRuleset/AmpNoTransformed.php:33
- > PHP Fatal error
Uncaught Error: Class 'Google\\Web_Stories_Dependencies\\AmpProject\\Validator\\Spec\\Tag' not found in wp-content/plugins/web-stories/third-party/vendor/ampproject/amp-toolbox/src/Validator/Spec/Tag/Datalist.php:23
- > PHP Fatal error
Uncaught Error: Interface 'Google\\Web_Stories_Dependencies\\AmpProject\\RemoteGetRequest' not found in wp-content/plugins/web-stories/third-party/vendor/ampproject/amp-wp/src/RemoteRequest/CachedRemoteGetRequest.php:26
- > PHP Fatal error
Uncaught Error: Class 'Google\\Web_Stories_Dependencies\\AmpProject\\Validator\\Spec\\Tag' not found in wp-content/plugins/web-stories/third-party/vendor/ampproject/amp-toolbox/src/Validator/Spec/Tag/MetaNameAmpToAmpNavigation.php:27
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Attachments_Controller' not found in wp-content/plugins/web-stories/includes/REST_API/Stories_Media_Controller.php:53
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
- > GET request to /wp-admin/edit.php?post_type=web-story&page=stories-dashboard
- > Javascript (severe) in unknown
/wp-admin/edit.php?post_type=web-story&page=stories-dashboard 209 Access to image at 'http://1.gravatar.com/avatar/dda8de772f53e64b26129d7f632ad1a3?s=26&d=mm&r=g' from origin '' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
- 5 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=web-story&page=stories-dashboard#/editor-settings
- > Network (severe)
http://1.gravatar.com/avatar/dda8de772f53e64b26129d7f632ad1a3?s=26&d=mm&r=g - Failed to load resource: net::ERR_FAILED
- > GET request to /wp-admin/edit.php?post_type=web-story
- > Javascript (severe) in unknown
/wp-admin/edit.php?post_type=web-story 301 Access to image at 'http://1.gravatar.com/avatar/dda8de772f53e64b26129d7f632ad1a3?s=26&d=mm&r=g' from origin '' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
- > GET request to /wp-admin/edit.php?post_type=web-story&page=stories-dashboard#/templates-gallery
- > Javascript (severe) in unknown
/wp-admin/edit.php?post_type=web-story&page=stories-dashboard#/templates-gallery 209 Access to image at 'http://1.gravatar.com/avatar/dda8de772f53e64b26129d7f632ad1a3?s=26&d=mm&r=g' from origin '' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
- > GET request to /wp-admin/post-new.php?post_type=web-story
- > Other (severe) in unknown
/wp-admin/post-new.php?post_type=web-story 0 The Cross-Origin-Opener-Policy header has been ignored, because the URL's origin was untrustworthy. It was defined either in the final response or a redirect. Please deliver the response using the HTTPS protocol. You can also use the 'localhost' origin instead. See https://www.w3.org/TR/powerful-features/#potentially-trustworthy-origin and https://html.spec.whatwg.org/#the-cross-origin-opener-policy-header.
- > GET request to /wp-admin/post-new.php?post_type=web-story
- > Javascript (severe) in unknown
/wp-admin/post-new.php?post_type=web-story 1709 Access to image at 'http://1.gravatar.com/avatar/dda8de772f53e64b26129d7f632ad1a3?s=26&d=mm&r=g' from origin '' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
- > GET request to /wp-admin/edit.php?post_type=web-story&page=stories-dashboard#/editor-settings
- > Javascript (severe) in unknown
/wp-admin/edit.php?post_type=web-story&page=stories-dashboard#/editor-settings 209 Access to image at 'http://1.gravatar.com/avatar/dda8de772f53e64b26129d7f632ad1a3?s=26&d=mm&r=g' from origin '' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: stories, web stories, amp, google, storytelling
web-stories/web-stories.php Passed 13 tests
The main file in "Web Stories" v. 1.35.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
34 characters long description:
Visual storytelling for WordPress.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin106,328 lines of code in 1,620 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,435 | 6,857 | 63,697 | 58,527 |
JSON | 3 | 0 | 0 | 47,371 |
JavaScript | 158 | 0 | 9 | 403 |
CSS | 24 | 0 | 1 | 27 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 5.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 491.00 |
Average method complexity | 3.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 59.00 |
Code structure | ||
---|---|---|
Namespaces | 74 | |
Interfaces | 63 | |
Traits | 4 | |
Classes | 1,323 | |
▷ Abstract classes | 31 | 2.34% |
▷ Concrete classes | 1,292 | 97.66% |
▷ Final classes | 1,090 | 84.37% |
Methods | 2,658 | |
▷ Static methods | 460 | 17.31% |
▷ Public methods | 2,019 | 75.96% |
▷ Protected methods | 260 | 9.78% |
▷ Private methods | 379 | 14.26% |
Functions | 161 | |
▷ Named functions | 62 | 38.51% |
▷ Anonymous functions | 99 | 61.49% |
Constants | 5,114 | |
▷ Global constants | 18 | 0.35% |
▷ Class constants | 5,096 | 99.65% |
▷ Public constants | 5,092 | 99.92% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin