Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼5.08ms] Passed 4 tests
Analyzing server-side resources used by JSM file_get_contents() Shortcode
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 48.67 ▲8.20 |
Dashboard /wp-admin | 3.35 ▲0.00 | 46.03 ▼13.57 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 47.67 ▲1.15 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 97.35 ▼7.30 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 35.28 ▼0.59 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by JSM file_get_contents() Shortcode
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.22 ▼1.39 | 1.85 ▲0.30 | 42.49 ▲3.06 |
Dashboard /wp-admin | 2,203 ▲14 | 5.83 ▼0.05 | 94.77 ▼5.89 | 38.87 ▼2.99 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.03 ▼0.02 | 40.21 ▲2.17 | 34.11 ▲1.89 |
Add New Post /wp-admin/post-new.php | 1,533 ▼9 | 23.29 ▲5.08 | 631.02 ▼34.35 | 59.04 ▲0.57 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.22 ▲0.04 | 95.47 ▼6.50 | 41.98 ▼3.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
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
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/wp-file-get-contents/wp-file-get-contents.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: url, body, include, content, file_get_contents...
wp-file-get-contents/wp-file-get-contents.php Passed 13 tests
This is the main PHP file of "JSM file_get_contents() Shortcode" version 2.7.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
51 characters long description:
A WordPress shortcode for PHP's file_get_contents()
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected228 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 104 | 64 | 177 |
Markdown | 1 | 16 | 0 | 51 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.82 |
Average class complexity | 69.00 |
▷ Minimum class complexity | 69.00 |
▷ Maximum class complexity | 69.00 |
Average method complexity | 7.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 43.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 | 11 | |
▷ Static methods | 2 | 18.18% |
▷ Public methods | 8 | 72.73% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 27.27% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.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
There are no PNG files in this plugin