Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.33MB] [CPU: ▼255.39ms] Passed 4 tests
An overview of server-side resources used by Olympus Widgets
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.15 ▲0.32 | 41.46 ▲9.94 |
Dashboard /wp-admin | 3.43 ▲0.38 | 52.61 ▲8.68 |
Posts /wp-admin/edit.php | 3.48 ▲0.38 | 50.05 ▲6.51 |
Add New Post /wp-admin/post-new.php | 5.73 ▲0.30 | 98.67 ▼1,035.06 |
Media Library /wp-admin/upload.php | 3.31 ▲0.31 | 37.62 ▼1.68 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 27 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_olympus_dribbble_widget |
widget_olympus_facebook_widget |
widget_olympus_twitter_widget |
widget_olympus_flickr_widget |
widget_olympus_profile_widget |
widget_olympus_featured_posts_widget |
widget_olympus_video_widget |
widget_olympus_social_widget |
Browser metrics Passed 4 tests
Olympus Widgets: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,692 ▲86 | 16.86 ▲1.37 | 17.58 ▲7.38 | 48.62 ▲1.39 |
Dashboard /wp-admin | 2,932 ▲82 | 5.97 ▲0.10 | 138.28 ▲5.56 | 101.71 ▼3.24 |
Posts /wp-admin/edit.php | 2,724 ▲18 | 2.74 ▲0.05 | 75.42 ▲8.72 | 108.45 ▲5.87 |
Add New Post /wp-admin/post-new.php | 1,485 ▼368 | 18.55 ▼0.41 | 371.94 ▼1.76 | 114.85 ▲10.33 |
Media Library /wp-admin/upload.php | 1,787 ▲15 | 5.04 ▲0.02 | 126.28 ▼23.11 | 113.81 ▼1.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin did not uninstall successfully, leaving 8 options in the database
- widget_olympus_facebook_widget
- widget_olympus_social_widget
- widget_olympus_video_widget
- widget_olympus_profile_widget
- widget_olympus_featured_posts_widget
- widget_olympus_flickr_widget
- widget_olympus_twitter_widget
- widget_olympus_dribbble_widget
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)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 12× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/olympus-widgets/inc/customizer/extensions/preview.php:19
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/olympus-widgets/widgets/twitter-widget.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/olympus-widgets/olympus-widgets.php:29
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/olympus-widgets/widgets/flickr-widget.php:16
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/olympus-widgets/widgets/author-widget.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/olympus-widgets/inc/customizer/extensions/interface.php:166
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/olympus-widgets/inc/customizer/customizer-settings.php:286
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/olympus-widgets/widgets/video-widget.php:16
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/olympus-widgets/widgets/social-widget.php:16
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/olympus-widgets/widgets/featured-posts-widget.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: dribbble widget, video widget, author widget, facebook widget, twitter widget...
olympus-widgets/olympus-widgets.php Passed 13 tests
"Olympus Widgets" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
51 characters long description:
Adds eight new widgets you can use in your sidebar.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin2,232 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 607 | 944 | 1,921 |
CSS | 1 | 27 | 12 | 182 |
SVG | 1 | 0 | 0 | 97 |
JavaScript | 2 | 10 | 6 | 32 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 9.52 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 38.00 |
Average method complexity | 2.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 23 | |
▷ Abstract classes | 2 | 8.70% |
▷ Concrete classes | 21 | 91.30% |
▷ Final classes | 0 | 0.00% |
Methods | 123 | |
▷ Static methods | 11 | 8.94% |
▷ Public methods | 112 | 91.06% |
▷ Protected methods | 2 | 1.63% |
▷ Private methods | 9 | 7.32% |
Functions | 24 | |
▷ Named functions | 16 | 66.67% |
▷ Anonymous functions | 8 | 33.33% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin