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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.48MB] [CPU: ▼7.24ms] Passed 4 tests
An overview of server-side resources used by ThemeLoom Widgets
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.02 ▲0.55 | 42.33 ▼2.85 |
Dashboard /wp-admin | 3.83 ▲0.49 | 50.93 ▼10.38 |
Posts /wp-admin/edit.php | 3.89 ▲0.53 | 53.32 ▲5.07 |
Add New Post /wp-admin/post-new.php | 6.35 ▲0.46 | 85.16 ▼16.34 |
Media Library /wp-admin/upload.php | 3.70 ▲0.46 | 38.83 ▲0.60 |
Server storage [IO: ▲0.28MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 31 new files
Database: no new tables, 12 new options
New WordPress options |
---|
widget_tl_fb_widget |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_los_show_pages |
widget_los_showposts_widget |
can_compress_scripts |
widget_los_media_widget |
widget_recent-posts |
widget_themeloomflickrwidget |
... |
Browser metrics Passed 4 tests
ThemeLoom Widgets: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,791 ▲45 | 14.29 ▲0.02 | 1.76 ▲0.18 | 40.46 ▼1.10 |
Dashboard /wp-admin | 2,195 ▲18 | 5.63 ▲0.00 | 89.76 ▼4.21 | 40.29 ▼1.91 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.97 ▼0.04 | 35.47 ▲0.69 | 34.20 ▼1.76 |
Add New Post /wp-admin/post-new.php | 1,528 ▲2 | 23.46 ▼0.00 | 699.34 ▲52.81 | 55.15 ▲5.36 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.26 ▲0.11 | 99.34 ▼7.50 | 44.65 ▼2.13 |
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 12 options in the database
- widget_recent-posts
- widget_themeloomflickrwidget
- can_compress_scripts
- db_upgraded
- widget_tl_fb_widget
- widget_los_twitter_widget
- widget_recent-comments
- widget_theysaidso_widget
- widget_los_show_pages
- theysaidso_admin_options
- ...
Smoke tests 75% 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)
Good news, no errors were detected
SRP 50% from 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
Please fix the following items
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/themeloom-widgets/show-widgets.php:10
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/themeloom-widgets/flickr-widget.php:5
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/themeloom-widgets/facebook-widget.php:10
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/themeloom-widgets/twitter-widget.php:86
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
8 plugin tags: pages, query, responsive, twitter, facebook...
themeloom-widgets/themeloom-widgets.php Passed 13 tests
This is the main PHP file of "ThemeLoom Widgets" version 1.8.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
128 characters long description:
A set of really useful widgets for showing posts, pages, tweets and your flickr images. Designed for use with responsive themes.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected2,456 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 539 | 525 | 1,910 |
PO File | 2 | 154 | 164 | 358 |
CSS | 1 | 22 | 7 | 188 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 11.35 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 38.00 |
Average method complexity | 2.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 2 | 10.00% |
▷ Concrete classes | 18 | 90.00% |
▷ Final classes | 0 | 0.00% |
Methods | 115 | |
▷ Static methods | 10 | 8.70% |
▷ Public methods | 101 | 87.83% |
▷ Protected methods | 2 | 1.74% |
▷ Private methods | 12 | 10.43% |
Functions | 11 | |
▷ Named functions | 11 | 100.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
13 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/format_link48.png | 1.04KB | 0.70KB | ▼ 32.93% |
images/format_status48.png | 0.86KB | 0.62KB | ▼ 27.28% |
images/format_page48.png | 0.31KB | 0.21KB | ▼ 30.91% |
images/format_gallery48.png | 0.67KB | 0.48KB | ▼ 27.42% |
images/format_chat48.png | 0.96KB | 0.70KB | ▼ 27.69% |