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
Installer ran successfully
Server metrics [RAM: ▲0.28MB] [CPU: ▼3.25ms] Passed 4 tests
A check of server-side resources used by Open Graph Images With Caption
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.74 ▲0.28 | 40.03 ▼7.48 |
Dashboard /wp-admin | 3.57 ▲0.27 | 52.72 ▲0.09 |
Posts /wp-admin/edit.php | 3.68 ▲0.33 | 50.79 ▲4.64 |
Add New Post /wp-admin/post-new.php | 6.17 ▲0.29 | 87.68 ▼8.61 |
Media Library /wp-admin/upload.php | 3.49 ▲0.26 | 37.78 ▲3.00 |
Server storage [IO: ▲0.34MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, 25 new options
New WordPress options |
---|
ogi_og_tw_creator |
ogi_def_blur |
ogi_og_yoast |
ogi_plugin_version |
ogi_def_og |
ogi_og_tw_site |
ogi_def_overlay_color |
ogi_title_length |
ogi_def_fb_w |
widget_theysaidso_widget |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Open Graph Images With Caption
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,826 ▲55 | 13.84 ▼0.91 | 1.71 ▼0.40 | 42.67 ▼0.12 |
Dashboard /wp-admin | 2,232 ▲44 | 5.17 ▼0.84 | 106.46 ▼9.36 | 39.30 ▼2.71 |
Posts /wp-admin/edit.php | 2,120 ▲31 | 2.32 ▲0.27 | 41.29 ▲2.41 | 33.12 ▼0.80 |
Add New Post /wp-admin/post-new.php | 6,698 ▲5,179 | 22.18 ▼0.93 | 1,068.49 ▲435.40 | 45.34 ▼14.57 |
Media Library /wp-admin/upload.php | 1,414 ▲23 | 4.48 ▲0.24 | 101.22 ▼1.63 | 45.87 ▲1.51 |
OG Images With Caption /wp-admin/open-graph-images-with-caption.php | 26 | 0.44 | 0.11 | 13.69 |
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
- This plugin did not uninstall successfully, leaving 25 options in the database
- ogi_def_box_color
- ogi_def_tw_h
- ogi_def_back_color
- ogi_def_fb_w
- ogi_og_print_tags
- ogi_def_tw_w
- widget_recent-posts
- ogi_og_tw_creator
- ogi_def_fb_h
- can_compress_scripts
- ...
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 everything seems fine, this is not an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP test
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
- > GET request to /wp-admin/open-graph-images-with-caption.php
- > Network (severe)
wp-admin/open-graph-images-with-caption.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Tags: You are using too many tags: 13 tag instead of maximum 10
open-graph-images-with-caption/open-graph-images-with-caption.php Passed 13 tests
The main file in "Open Graph Images With Caption" v. 1.0.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
70 characters long description:
Easy generate Open Graph images from the post title and featured image
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin1,459 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 253 | 241 | 1,456 |
JavaScript | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
This is a short overview 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.33 |
Average class complexity | 66.00 |
▷ Minimum class complexity | 66.00 |
▷ Maximum class complexity | 66.00 |
Average method complexity | 3.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 6 | 25.00% |
▷ Public methods | 19 | 79.17% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 20.83% |
Functions | 25 | |
▷ Named functions | 25 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 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
3 PNG files occupy 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/styles.png | 41.05KB | 18.35KB | ▼ 55.30% |
images/none.png | 16.83KB | 6.92KB | ▼ 58.87% |
images/error.png | 7.75KB | 3.38KB | ▼ 56.38% |