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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.20MB] [CPU: ▼6.44ms] Passed 4 tests
A check of server-side resources used by Remote Snippets
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.21 | 44.66 ▼2.06 |
Dashboard /wp-admin | 3.50 ▲0.16 | 51.92 ▼10.93 |
Posts /wp-admin/edit.php | 3.62 ▲0.26 | 48.72 ▼0.52 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.23 | 88.17 ▼12.25 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 39.02 ▲4.48 |
Add New RemoteSnippet /wp-admin/post-new.php?post_type=remotesnippets | 3.51 | 45.50 |
RemoteSnippets /wp-admin/edit.php?post_type=remotesnippets | 3.47 | 42.63 |
Server storage [IO: ▲0.75MB] [DB: ▲0.31MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 380 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Remote Snippets
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲84 | 14.35 ▲0.16 | 1.70 ▼0.22 | 44.06 ▼5.74 |
Dashboard /wp-admin | 2,219 ▲42 | 5.55 ▼0.08 | 97.23 ▲7.35 | 42.08 ▼2.97 |
Posts /wp-admin/edit.php | 2,127 ▲30 | 2.04 ▲0.07 | 35.40 ▲0.77 | 36.08 ▲0.15 |
Add New Post /wp-admin/post-new.php | 1,549 ▲14 | 23.06 ▲4.57 | 658.23 ▲4.90 | 60.43 ▼11.20 |
Media Library /wp-admin/upload.php | 1,427 ▲30 | 4.12 ▼0.08 | 111.43 ▲7.50 | 50.73 ▲7.51 |
Add New RemoteSnippet /wp-admin/post-new.php?post_type=remotesnippets | 2,263 | 3.99 | 81.04 | 50.13 |
RemoteSnippets /wp-admin/edit.php?post_type=remotesnippets | 1,107 | 1.89 | 32.59 | 31.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.31MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/post-new.php?post_type=remotesnippets
- > Warning in wp-content/plugins/remote-snippets/src/PostMetaData.php+162
Illegal string offset 'remotesnippet_ds'
- 5 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=remotesnippets
- > Notice in wp-content/plugins/remote-snippets/src/PostMetaData.php+231
Uninitialized string offset: 0
- > GET request to /wp-admin/post-new.php?post_type=remotesnippets
- > Warning in wp-content/plugins/remote-snippets/src/PostMetaData.php+182
Illegal string offset 'remotesnippet_ds_url'
- > GET request to /wp-admin/post-new.php?post_type=remotesnippets
- > Warning in wp-content/plugins/remote-snippets/src/PostMetaData.php+194
Illegal string offset 'remotesnippet_cache_enable'
- > GET request to /wp-admin/post-new.php?post_type=remotesnippets
- > Warning in wp-content/plugins/remote-snippets/src/PostMetaData.php+196
Illegal string offset 'remotesnippet_cache_timeout'
- > GET request to /wp-admin/post-new.php?post_type=remotesnippets
- > Warning in wp-content/plugins/remote-snippets/src/PostMetaData.php+231
Illegal string offset 'remotesnippet_error_handling'
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 148× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'RS_Vendor\\Twig\\Extra\\Markdown\\MarkdownInterface' not found in wp-content/plugins/remote-snippets/thirdparty/twig/markdown-extra/src/DefaultMarkdown.php:16
- > PHP Fatal error
Uncaught Error: Class 'RS_Vendor\\Twig\\TokenParser\\AbstractTokenParser' not found in wp-content/plugins/remote-snippets/thirdparty/twig/twig/src/TokenParser/FlushTokenParser.php:20
- > PHP Fatal error
Uncaught Error: Class 'RS_Vendor\\Twig\\Extension\\AbstractExtension' not found in wp-content/plugins/remote-snippets/thirdparty/twig/twig/src/Extension/OptimizerExtension.php:14
- > PHP Fatal error
Uncaught Error: Class 'RS_Vendor\\Twig\ode\\Expression\\Binary\\AbstractBinary' not found in wp-content/plugins/remote-snippets/thirdparty/twig/twig/src/Node/Expression/Binary/NotInBinary.php:14
- > PHP Fatal error
Uncaught Error: Interface 'RS_Vendor\\Twig\\Loader\\LoaderInterface' not found in wp-content/plugins/remote-snippets/thirdparty/twig/twig/src/Loader/FilesystemLoader.php:20
- > PHP Fatal error
Uncaught Error: Class 'RS_Vendor\\Twig\ode\\Expression\\AbstractExpression' not found in wp-content/plugins/remote-snippets/thirdparty/twig/twig/src/Node/Expression/InlinePrint.php:18
- > PHP Fatal error
Uncaught Error: Class 'RS_Vendor\\Twig\\Extension\\AbstractExtension' not found in wp-content/plugins/remote-snippets/thirdparty/twig/twig/src/Extension/ProfilerExtension.php:15
- > PHP Fatal error
Uncaught Error: Class 'RS_Vendor\\Twig\\TokenParser\\AbstractTokenParser' not found in wp-content/plugins/remote-snippets/thirdparty/twig/twig/src/TokenParser/ForTokenParser.php:32
- > PHP Fatal error
Uncaught Error: Class 'RS_Vendor\\Twig\ode\ode' not found in wp-content/plugins/remote-snippets/thirdparty/twig/twig/src/Node/FlushNode.php:19
- > PHP Fatal error
Uncaught Error: Class 'RS_Vendor\\Twig\\Error\\Error' not found in wp-content/plugins/remote-snippets/thirdparty/twig/twig/src/Error/SyntaxError.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
8 plugin tags: template, twig, csv, connect, webservice...
remote-snippets/remote-snippets.php Passed 13 tests
The main PHP script in "Remote Snippets" version 1.0.3 is automatically included on every request by WordPress
138 characters long description:
Import JSON and CSV data and display it using a Twig template. Consume API's and Webservices and display live data on your Wordpress site.
Code Analysis Passed 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
Success! There were no dangerous files found in this plugin13,860 lines of code in 377 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 374 | 893 | 4,828 | 13,767 |
Markdown | 1 | 32 | 0 | 54 |
JSON | 2 | 0 | 0 | 39 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 4.77 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 186.00 |
Average method complexity | 2.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 24 | |
Interfaces | 15 | |
Traits | 0 | |
Classes | 353 | |
▷ Abstract classes | 9 | 2.55% |
▷ Concrete classes | 344 | 97.45% |
▷ Final classes | 50 | 14.53% |
Methods | 878 | |
▷ Static methods | 28 | 3.19% |
▷ Public methods | 714 | 81.32% |
▷ Protected methods | 96 | 10.93% |
▷ Private methods | 68 | 7.74% |
Functions | 64 | |
▷ Named functions | 52 | 81.25% |
▷ Anonymous functions | 12 | 18.75% |
Constants | 50 | |
▷ Global constants | 1 | 2.00% |
▷ Class constants | 49 | 98.00% |
▷ Public constants | 49 | 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
No PNG files were detected