Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.68MB] [CPU: ▼143.84ms] Passed 4 tests
An overview of server-side resources used by WP Imgur Plus
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.36 ▲0.64 | 49.00 ▲25.50 |
Dashboard /wp-admin | 3.81 ▲0.75 | 51.62 ▲3.41 |
Posts /wp-admin/edit.php | 3.86 ▲0.75 | 55.22 ▲7.21 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.66 | 99.30 ▼586.55 |
Media Library /wp-admin/upload.php | 3.69 ▲0.69 | 38.14 ▲0.59 |
WP Imgur Plus /wp-admin/options-general.php?page=wp-imgur-plus | 3.70 | 36.76 |
Server storage [IO: ▲2.99MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 331 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
WP Imgur Plus: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,684 ▲88 | 15.82 ▲0.25 | 8.98 ▼0.24 | 49.62 ▲1.69 |
Dashboard /wp-admin | 2,975 ▲41 | 6.02 ▲0.08 | 144.31 ▼5.42 | 101.98 ▼24.23 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.68 ▲0.01 | 65.53 ▼7.15 | 91.41 ▼4.39 |
Add New Post /wp-admin/post-new.php | 1,686 ▲3 | 18.66 ▲0.01 | 410.32 ▲10.48 | 110.88 ▼1.46 |
Media Library /wp-admin/upload.php | 1,815 ▲8 | 5.02 ▲0.00 | 152.21 ▼15.70 | 118.31 ▼3.36 |
WP Imgur Plus /wp-admin/options-general.php?page=wp-imgur-plus | 1,036 | 3.59 | 90.39 | 73.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully
Smoke tests 50% 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)
The smoke test was a success, however most plugin functionality was not tested
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
- 184× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Arrow\\Plugin' not found in wp-content/plugins/wp-imgur-plus/lib/WpImgur/Plugin.php:5
- > PHP Fatal error
Uncaught Error: Class 'Twig_TokenParser' not found in wp-content/plugins/wp-imgur-plus/vendor/twig/twig/lib/Twig/TokenParser/Spaceless.php:25
- > PHP Fatal error
Uncaught Error: Class 'Twig_Function' not found in wp-content/plugins/wp-imgur-plus/vendor/twig/twig/lib/Twig/Function/Node.php:20
- > PHP Fatal error
Uncaught Error: Class 'Twig_Extension' not found in wp-content/plugins/wp-imgur-plus/vendor/twig/twig/lib/Twig/Extension/Optimizer.php:11
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node_Expression_Binary' not found in wp-content/plugins/wp-imgur-plus/vendor/twig/twig/lib/Twig/Node/Expression/Binary/Add.php:12
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node' not found in wp-content/plugins/wp-imgur-plus/vendor/twig/twig/lib/Twig/Node/Block.php:18
- > PHP Fatal error
Uncaught Error: Class 'Requests_Exception_HTTP' not found in wp-content/plugins/wp-imgur-plus/vendor/rmccue/requests/library/Requests/Exception/HTTP/406.php:13
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node' not found in wp-content/plugins/wp-imgur-plus/vendor/twig/twig/lib/Twig/Node/Import.php:17
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node_Expression_Binary' not found in wp-content/plugins/wp-imgur-plus/vendor/twig/twig/lib/Twig/Node/Expression/Binary/Or.php:12
- > PHP Fatal error
Uncaught Error: Class 'Twig_Function' not found in wp-content/plugins/wp-imgur-plus/vendor/twig/twig/lib/Twig/Function/Method.php:21
- > 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 browser errors
- > GET request to /wp-admin/options-general.php?page=wp-imgur-plus
- > Javascript (severe) in unknown
/wp-content/plugins/wp-imgur-plus/js/wp-imgur-plus-vendor.js?ver=1637252664 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-plus
- > Javascript (severe) in unknown
/wp-content/plugins/wp-imgur-plus/js/wp-imgur-plus-vendor.js?ver=1637252664 41:12 Uncaught Error: Could not find module ember
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
3 plugin tags: cdn, imgur, image cdn
wp-imgur-plus/wp-imgur-plus.php Passed 13 tests
The primary PHP file in "WP Imgur Plus" version 1.0.1 is used by WordPress to initiate all plugin functionality
130 characters long description:
Serves your Media Library from imgur.com, changes the library to Imgur and save space in the hard drive! Based in WP Imgur plugin.
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
There were no executable files found in this plugin39,092 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,616 | 7,800 | 15,194 |
JSON | 1 | 0 | 0 | 349 |
CSS | 2 | 45 | 0 | 174 |
YAML | 9 | 32 | 3 | 126 |
Markdown | 1 | 7 | 0 | 24 |
HTML | 1 | 0 | 0 | 10 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 7.44 |
▷ 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,477 | |
▷ Static methods | 63 | 4.27% |
▷ Public methods | 1,330 | 90.05% |
▷ Protected methods | 143 | 9.68% |
▷ Private methods | 4 | 0.27% |
Functions | 53 | |
▷ Named functions | 52 | 98.11% |
▷ Anonymous functions | 1 | 1.89% |
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% |