Benchmarks
Plugin footprint 83% from 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.03MB] [CPU: ▼7.70ms] Passed 4 tests
This is a short check of server-side resources used by LH Cache Remote Images
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 44.20 ▲0.56 |
Dashboard /wp-admin | 3.34 ▼0.00 | 49.00 ▼19.73 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 50.84 ▼2.95 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 90.12 ▼8.66 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 37.31 ▲3.21 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for LH Cache Remote Images
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.68 ▲0.33 | 1.71 ▼0.26 | 46.68 ▲2.48 |
Dashboard /wp-admin | 2,195 ▲18 | 5.57 ▼0.04 | 91.80 ▲1.31 | 35.51 ▼5.84 |
Posts /wp-admin/edit.php | 2,103 ▼0 | 2.02 ▲0.02 | 42.31 ▲1.61 | 35.72 ▼4.13 |
Add New Post /wp-admin/post-new.php | 1,531 ▲3 | 23.12 ▲0.11 | 694.82 ▲34.18 | 66.09 ▲10.00 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.13 ▼0.05 | 117.12 ▲13.36 | 45.29 ▲2.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, 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
The following issues need your attention
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lh-cache-remote-images/lh-cache-remote-images.php:380
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: cache images, grab images, archive remote images, media, auto-save images...
lh-cache-remote-images/lh-cache-remote-images.php Passed 13 tests
The main file in "LH Cache Remote Images" v. 1.04 serves as a complement to information provided in readme.txt and as the entry point to the plugin
67 characters long description:
This plugin caches all remote images in post_content asynchronously
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected270 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 356 | 68 | 270 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 25.50 |
▷ Minimum class complexity | 22.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 3.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 6 | 35.29% |
▷ Public methods | 8 | 47.06% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 52.94% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected