78% widgets-olakala

Code Review | Widgets OlaKala

WordPress plugin Widgets OlaKala scored78%from 54 tests.

About plugin

  • Plugin page: widgets-olakala
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.4-4.9.4
  • WordPress version: 6.3.1
  • First release: Mar 29, 2018
  • Latest release: Mar 29, 2018
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: sebastienrenaudeau (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /517 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼6.75ms] Passed 4 tests

A check of server-side resources used by Widgets OlaKala
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.33 ▲1.86
Dashboard /wp-admin3.33 ▼0.0248.25 ▼10.78
Posts /wp-admin/edit.php3.38 ▲0.0243.60 ▼6.36
Add New Post /wp-admin/post-new.php5.91 ▲0.0285.58 ▼10.64
Media Library /wp-admin/upload.php3.25 ▲0.0236.84 ▲0.79

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 8 new options
New WordPress options
widget_widget-olakala-score
widget_recent-comments
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_widget-olakala-reviews
widget_recent-posts

Browser metrics Passed 4 tests

Widgets OlaKala: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.15 ▼1.501.70 ▼0.0242.92 ▲2.20
Dashboard /wp-admin2,206 ▲185.94 ▲0.06110.24 ▲11.1041.17 ▼3.22
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0134.18 ▼6.8232.98 ▼3.98
Add New Post /wp-admin/post-new.php1,535 ▲2123.17 ▲5.70654.81 ▼6.9451.43 ▼9.07
Media Library /wp-admin/upload.php1,385 ▼04.23 ▲0.05113.50 ▲14.0846.13 ▲3.65

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_widget-olakala-reviews
    • widget_widget-olakala-score

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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
Almost there! Just fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/widgets-olakala/widgets-olakala.php
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/widgets-olakala/widgets-olakala-widget-score-class.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/widgets-olakala/shortcodes-olakala.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/widgets-olakala/widgets-olakala-widget-reviews-class.php:3

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: olakala score, olakala reviews, olakala, widgets olakala

widgets-olakala/widgets-olakala.php 85% from 13 tests

The primary PHP file in "Widgets OlaKala" version 1.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Domain Path: Use only dashes and lowercase characters for the domain path ("languages")
  • Domain Path: Prefix the domain path with a forward slash character ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin162 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP42357162

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions571.43%
▷ Anonymous functions228.57%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin