84% shubaloo

Code Review | Shubaloo

WordPress plugin Shubaloo scored84%from 54 tests.

About plugin

  • Plugin page: shubaloo
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-4.2.3
  • WordPress version: 6.3.1
  • First release: Aug 19, 2015
  • Latest release: Aug 19, 2015
  • Number of updates: 5
  • Update frequency: every 0.6 days
  • Top authors: shuisonfire (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /988 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
The plugin installed gracefully, with no errors

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

A check of server-side resources used by Shubaloo
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.56 ▼2.90
Dashboard /wp-admin3.31 ▲0.0150.62 ▼4.80
Posts /wp-admin/edit.php3.37 ▲0.0153.06 ▲2.78
Add New Post /wp-admin/post-new.php5.90 ▲0.0192.54 ▼4.67
Media Library /wp-admin/upload.php3.24 ▲0.0137.38 ▼3.39

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_shubaloo_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Shubaloo
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.30 ▼0.281.95 ▲0.0943.15 ▼1.25
Dashboard /wp-admin2,198 ▲215.61 ▼0.0891.11 ▼10.6040.61 ▼2.43
Posts /wp-admin/edit.php2,100 ▼02.00 ▼0.0240.04 ▲1.8136.29 ▲0.62
Add New Post /wp-admin/post-new.php1,558 ▲923.15 ▼0.03661.23 ▼22.7056.97 ▲3.58
Media Library /wp-admin/upload.php1,403 ▲64.21 ▼0.0399.96 ▼15.8642.70 ▼7.00

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_shubaloo_widget
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/shubaloo/shubaloo.php:12

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

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
10 plugin tags: plugin, music player, concert calendar, free, shubaloo...

shubaloo/shubaloo.php Passed 13 tests

"Shubaloo" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
49 characters long description:
Curate and embed an interactive concert calendar.

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 plugin85 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1172185

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.06
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected