84% ubuntu-sidebar

Code Review | Ubuntu sidebar

WordPress plugin Ubuntu sidebar scored84%from 54 tests.

About plugin

  • Plugin page: ubuntu-sidebar
  • Plugin version: 0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.2-3.9.2
  • WordPress version: 6.3.1
  • First release: May 1, 2012
  • Latest release: Jan 30, 2015
  • Number of updates: 22
  • Update frequency: every 45.6 days
  • Top authors: zpop (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,318 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼1.99ms] Passed 4 tests

This is a short check of server-side resources used by Ubuntu sidebar
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0342.70 ▲2.69
Dashboard /wp-admin3.34 ▲0.0351.21 ▼2.24
Posts /wp-admin/edit.php3.39 ▲0.0351.51 ▼0.08
Add New Post /wp-admin/post-new.php5.92 ▲0.0399.88 ▼6.89
Media Library /wp-admin/upload.php3.26 ▲0.0340.18 ▲1.24
Ubuntu Sidebar /wp-admin/options-general.php?page=ubuntusidebar3.2335.51

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Ubuntu sidebar
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,935 ▲17414.17 ▼0.446.48 ▲4.6438.84 ▼3.16
Dashboard /wp-admin2,227 ▲215.91 ▲1.0095.40 ▼12.8940.95 ▼3.54
Posts /wp-admin/edit.php2,106 ▲62.03 ▲0.0239.78 ▼0.7435.52 ▼2.09
Add New Post /wp-admin/post-new.php1,623 ▲7823.59 ▲0.44679.16 ▼14.5860.76 ▲5.69
Media Library /wp-admin/upload.php1,409 ▲94.17 ▼0.06111.61 ▼4.6747.17 ▼3.89
Ubuntu Sidebar /wp-admin/options-general.php?page=ubuntusidebar1,0961.9633.9048.33

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ubuntu-sidebar/ubuntu-sidebar.php:33

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Screenshots: These screenshots do not have images: #1 (What the plugin looks like once installed on your blog or website.), #2 (Info.), #3 (Ubuntu media Buttons.), #4 (Options.)
The official readme.txt might help

ubuntu-sidebar/ubuntu-sidebar.php Passed 13 tests

The main file in "Ubuntu sidebar" v. 0.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
79 characters long description:
Add Ubuntu media buttons to the right side of your website with style and ease.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected257 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1727194
JavaScript161263

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
11 PNG files occupy 0.12MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-4.png8.93KB4.28KB▼ 52.07%
images/ubuntu-com.png1.16KB0.97KB▼ 16.69%
images/ubuntu-dvd.png1.20KB1.03KB▼ 13.95%
images/why-ubuntu.png1.19KB1.18KB▼ 1.31%
images/ubuntu-loco.png1.52KB1.57KB0.00%