Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼3.58ms] Passed 4 tests
Server-side resources used by XKCD Embed
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 37.58 ▼3.47 |
Dashboard /wp-admin | 3.32 ▲0.01 | 44.32 ▼3.62 |
Posts /wp-admin/edit.php | 3.43 ▲0.08 | 49.44 ▼0.03 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 93.73 ▼7.18 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.26 ▲0.75 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 8 new options
New WordPress options |
---|
xkcd_embed |
can_compress_scripts |
widget_recent-posts |
widget_xkcd_embed_widget |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for XKCD Embed
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲92 | 14.48 ▼0.16 | 1.73 ▼0.02 | 38.91 ▼2.80 |
Dashboard /wp-admin | 2,209 ▲21 | 4.84 ▼0.06 | 109.46 ▲7.19 | 39.02 ▼3.89 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.00 ▼0.05 | 41.04 ▼1.21 | 38.30 ▲0.01 |
Add New Post /wp-admin/post-new.php | 1,534 ▼9 | 23.35 ▲5.23 | 664.89 ▲61.56 | 46.13 ▼7.10 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.21 ▲0.02 | 99.35 ▲4.85 | 44.51 ▼4.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 8 options
- xkcd_embed
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_xkcd_embed_widget
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: shortcode, widget, xkcd, webcomic, comic
xkcd-embed/xkcd-embed.php Passed 13 tests
"XKCD Embed" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
36 characters long description:
Display XKCD comics on your website!
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 plugin243 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 101 | 223 | 235 |
CSS | 1 | 2 | 4 | 8 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 9.67 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 2.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 1 | 7.14% |
▷ Public methods | 11 | 78.57% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 21.43% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin