Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.62MB] [CPU: ▼0.89ms] Passed 4 tests
An overview of server-side resources used by wp-imgur-extra
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.99 ▲0.52 | 40.94 ▼0.16 |
Dashboard /wp-admin | 3.96 ▲0.62 | 51.94 ▼14.19 |
Posts /wp-admin/edit.php | 4.08 ▲0.72 | 54.53 ▲7.37 |
Add New Post /wp-admin/post-new.php | 6.54 ▲0.66 | 100.53 ▲5.73 |
Media Library /wp-admin/upload.php | 3.89 ▲0.66 | 38.75 ▲5.06 |
WP Imgur Extra /wp-admin/options-general.php?page=wp-imgur-extra | 3.89 | 36.20 |
Server storage [IO: ▲2.99MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 330 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for wp-imgur-extra
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.16 ▼1.06 | 1.66 ▼0.16 | 40.63 ▼3.01 |
Dashboard /wp-admin | 2,210 ▲22 | 4.87 ▼0.01 | 108.92 ▼8.57 | 42.13 ▼1.83 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 1.96 ▼0.09 | 39.36 ▲2.75 | 35.76 ▼0.20 |
Add New Post /wp-admin/post-new.php | 1,545 ▲28 | 18.39 ▲0.84 | 604.57 ▼54.89 | 51.14 ▼2.93 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.22 ▲0.04 | 94.95 ▼2.51 | 41.38 ▼3.39 |
WP Imgur Extra /wp-admin/options-general.php?page=wp-imgur-extra | 792 | 3.11 | 61.60 | 26.74 |
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
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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 errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Arrow\\Plugin' not found in wp-content/plugins/wp-imgur-extra/lib/WpImgurExtra/Plugin.php:5
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node_Expression_Call' not found in wp-content/plugins/wp-imgur-extra/vendor/twig/twig/lib/Twig/Node/Expression/Test.php:11
- > PHP Fatal error
Uncaught Error: Interface 'Requests_Transport' not found in wp-content/plugins/wp-imgur-extra/vendor/rmccue/requests/library/Requests/Transport/cURL.php:15
- > PHP Fatal error
Uncaught Error: Class 'Twig_TokenParser' not found in wp-content/plugins/wp-imgur-extra/vendor/twig/twig/lib/Twig/TokenParser/Import.php:19
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node_Expression' not found in wp-content/plugins/wp-imgur-extra/vendor/twig/twig/lib/Twig/Node/Expression/ExtensionReference.php:17
- > PHP Fatal error
Uncaught Error: Class 'Twig_TokenParser' not found in wp-content/plugins/wp-imgur-extra/vendor/twig/twig/lib/Twig/TokenParser/Include.php:22
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node_Expression_Binary' not found in wp-content/plugins/wp-imgur-extra/vendor/twig/twig/lib/Twig/Node/Expression/Binary/Range.php:11
- > PHP Fatal error
Uncaught Error: Interface 'Twig_CompilerInterface' not found in wp-content/plugins/wp-imgur-extra/vendor/twig/twig/lib/Twig/Compiler.php:18
- > PHP Fatal error
Uncaught Error: Class 'Requests_Exception_HTTP' not found in wp-content/plugins/wp-imgur-extra/vendor/rmccue/requests/library/Requests/Exception/HTTP/511.php:15
- > PHP Fatal error
Uncaught Error: Class 'Arrow\\Ajax\\Controller' not found in wp-content/plugins/wp-imgur-extra/lib/WpImgurExtra/Ajax/ImageController.php:5
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/options-general.php?page=wp-imgur-extra
- > Javascript (severe) in unknown
/wp-content/plugins/wp-imgur-extra/js/wp-imgur-extra-vendor.js?ver=1696734448 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-extra
- > Javascript (severe) in unknown
/wp-content/plugins/wp-imgur-extra/js/wp-imgur-extra-vendor.js?ver=1696734448 41:12 Uncaught Error: Could not find module ember
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Screenshot #1 (Plugin setting page) image missing
wp-imgur-extra/wp-imgur-extra.php Passed 13 tests
"wp-imgur-extra" version 0.7.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
96 characters long description:
This plugin based on wp-imgur by Darshan Sawardekar with added option to enable https for image.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected39,169 lines of code in 313 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 10,255 | 18,273 | 23,232 |
PHP | 295 | 3,620 | 7,799 | 15,292 |
JSON | 1 | 0 | 0 | 349 |
CSS | 2 | 45 | 0 | 174 |
YAML | 8 | 26 | 3 | 107 |
HTML | 1 | 0 | 0 | 10 |
Markdown | 1 | 2 | 0 | 5 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 7.41 |
▷ 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.08MB with 0.05MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 82.46KB | 23.26KB | ▼ 71.79% |
images/detector.png | 3.91KB | 2.31KB | ▼ 40.91% |