84% olympus-widgets

Code Review | Olympus Widgets

WordPress plugin Olympus Widgets scored 84% from 53 tests.

About plugin

  • Plugin page: olympus-widgets
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.2.2
  • WordPress version: 5.8.1
  • First release: Jul 11, 2015
  • Latest release: Jul 13, 2015
  • Number of updates: 8
  • Update frequency: every 1.0 days
  • Top authors: DannyCooper (100%)

Code review

53 tests

User reviews

1 review

Install metrics

20+ active / 1,188 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.15 ▲0.3241.46 ▲9.94
Dashboard /wp-admin3.43 ▲0.3852.61 ▲8.68
Posts /wp-admin/edit.php3.48 ▲0.3850.05 ▲6.51
Add New Post /wp-admin/post-new.php5.73 ▲0.3098.67 ▼1,035.06
Media Library /wp-admin/upload.php3.31 ▲0.3137.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,692 ▲8616.86 ▲1.3717.58 ▲7.3848.62 ▲1.39
Dashboard /wp-admin2,932 ▲825.97 ▲0.10138.28 ▲5.56101.71 ▼3.24
Posts /wp-admin/edit.php2,724 ▲182.74 ▲0.0575.42 ▲8.72108.45 ▲5.87
Add New Post /wp-admin/post-new.php1,485 ▼36818.55 ▼0.41371.94 ▼1.76114.85 ▲10.33
Media Library /wp-admin/upload.php1,787 ▲155.04 ▲0.02126.28 ▼23.11113.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP186079441,921
CSS12712182
SVG10097
JavaScript210632

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 code0.32
Average class complexity9.52
▷ Minimum class complexity1.00
▷ Maximum class complexity38.00
Average method complexity2.57
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes23
▷ Abstract classes28.70%
▷ Concrete classes2191.30%
▷ Final classes00.00%
Methods123
▷ Static methods118.94%
▷ Public methods11291.06%
▷ Protected methods21.63%
▷ Private methods97.32%
Functions24
▷ Named functions1666.67%
▷ Anonymous functions833.33%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.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