Benchmarks
Plugin footprint 83% 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: ▲0.62MB] [CPU: ▼2.39ms] Passed 4 tests
This is a short check of server-side resources used by wp-imgur
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.97 ▲0.51 | 39.07 ▼2.42 |
Dashboard /wp-admin | 3.96 ▲0.66 | 48.19 ▼1.57 |
Posts /wp-admin/edit.php | 4.07 ▲0.72 | 51.71 ▼0.83 |
Add New Post /wp-admin/post-new.php | 6.54 ▲0.66 | 89.69 ▼4.74 |
Media Library /wp-admin/upload.php | 3.88 ▲0.66 | 40.27 ▲2.47 |
WP Imgur /wp-admin/options-general.php?page=wp-imgur | 3.89 | 35.23 |
Server storage [IO: ▲2.90MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 330 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for wp-imgur
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲83 | 13.55 ▼0.63 | 1.80 ▲0.02 | 37.14 ▼6.96 |
Dashboard /wp-admin | 2,210 ▲55 | 4.84 ▼0.86 | 107.32 ▲7.84 | 36.66 ▼4.01 |
Posts /wp-admin/edit.php | 2,093 ▲18 | 2.03 ▲0.05 | 39.96 ▲0.67 | 36.00 ▲3.59 |
Add New Post /wp-admin/post-new.php | 1,537 ▲23 | 23.28 ▲5.73 | 671.39 ▼5.22 | 54.54 ▼4.81 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.20 ▼0.02 | 104.03 ▼0.22 | 44.38 ▼3.55 |
WP Imgur /wp-admin/options-general.php?page=wp-imgur | 774 | 3.12 | 63.00 | 28.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
- 184× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node_Expression_Call' not found in wp-content/plugins/wp-imgur/vendor/twig/twig/lib/Twig/Node/Expression/Test.php:11
- > PHP Fatal error
Uncaught Error: Class 'Requests_Exception_HTTP' not found in wp-content/plugins/wp-imgur/vendor/rmccue/requests/library/Requests/Exception/HTTP/418.php:15
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node_Expression' not found in wp-content/plugins/wp-imgur/vendor/twig/twig/lib/Twig/Node/Expression/Constant.php:12
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node_Expression_Binary' not found in wp-content/plugins/wp-imgur/vendor/twig/twig/lib/Twig/Node/Expression/Binary/BitwiseAnd.php:12
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node_Expression' not found in wp-content/plugins/wp-imgur/vendor/twig/twig/lib/Twig/Node/Expression/BlockReference.php:18
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node_Expression' not found in wp-content/plugins/wp-imgur/vendor/twig/twig/lib/Twig/Node/Expression/Array.php:11
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node_Expression_Binary' not found in wp-content/plugins/wp-imgur/vendor/twig/twig/lib/Twig/Node/Expression/Binary/LessEqual.php:11
- > PHP Fatal error
Uncaught Error: Class 'Twig_TokenParser' not found in wp-content/plugins/wp-imgur/vendor/twig/twig/lib/Twig/TokenParser/From.php:19
- > PHP Fatal error
Uncaught Error: Class 'Arrow\\Plugin' not found in wp-content/plugins/wp-imgur/lib/WpImgur/Plugin.php:5
- > PHP Fatal error
Uncaught Error: Class 'Twig_TokenParser' not found in wp-content/plugins/wp-imgur/vendor/twig/twig/lib/Twig/TokenParser/Block.php:23
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
- > GET request to /wp-admin/options-general.php?page=wp-imgur
- > Javascript (severe) in unknown
/wp-content/plugins/wp-imgur/js/wp-imgur-vendor.js?ver=1696232794 2914:4 Uncaught Ember.Error: Assertion Failed: Ember Views require jQuery between 1.7 and 2.1
- > GET request to /wp-admin/options-general.php?page=wp-imgur
- > Javascript (severe) in unknown
/wp-content/plugins/wp-imgur/js/wp-imgur-vendor.js?ver=1696232794 41:12 Uncaught Error: Could not find module ember
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: cdn, image cdn, imgur
wp-imgur/wp-imgur.php Passed 13 tests
This is the main PHP file of "wp-imgur" version 0.7.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
41 characters long description:
Serves your Media Library from imgur.com.
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
There were no executable files found in this plugin38,989 lines of code in 314 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 10,252 | 18,273 | 23,215 |
PHP | 295 | 3,614 | 7,799 | 15,110 |
JSON | 1 | 0 | 0 | 349 |
CSS | 2 | 45 | 0 | 174 |
YAML | 9 | 32 | 3 | 126 |
HTML | 1 | 0 | 0 | 10 |
Markdown | 1 | 2 | 0 | 5 |
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.38 |
Average class complexity | 7.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 193.00 |
Average method complexity | 2.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 43.00 |
Code structure | ||
---|---|---|
Namespaces | 14 | |
Interfaces | 24 | |
Traits | 0 | |
Classes | 267 | |
▷ Abstract classes | 10 | 3.75% |
▷ Concrete classes | 257 | 96.25% |
▷ Final classes | 0 | 0.00% |
Methods | 1,471 | |
▷ Static methods | 63 | 4.28% |
▷ Public methods | 1,324 | 90.01% |
▷ Protected methods | 143 | 9.72% |
▷ Private methods | 4 | 0.27% |
Functions | 52 | |
▷ Named functions | 51 | 98.08% |
▷ Anonymous functions | 1 | 1.92% |
Constants | 53 | |
▷ Global constants | 1 | 1.89% |
▷ Class constants | 52 | 98.11% |
▷ Public constants | 52 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/detector.png | 3.91KB | 2.31KB | ▼ 40.91% |