84% ubuntu-sidebar-lite

Code Review | Ubuntu sidebar lite

WordPress plugin Ubuntu sidebar lite scored84%from 54 tests.

About plugin

  • Plugin page: ubuntu-sidebar-lite
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.2-3.9.2
  • WordPress version: 6.3.1
  • First release: Jun 24, 2012
  • Latest release: Jan 30, 2015
  • Number of updates: 9
  • Update frequency: every 105.6 days
  • Top authors: zpop (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,080 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

An overview of server-side resources used by Ubuntu sidebar lite
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0152.29 ▲6.54
Dashboard /wp-admin3.32 ▲0.0154.42 ▼6.82
Posts /wp-admin/edit.php3.37 ▲0.0151.29 ▲0.41
Add New Post /wp-admin/post-new.php5.90 ▲0.0192.81 ▼3.04
Media Library /wp-admin/upload.php3.24 ▲0.0141.11 ▲3.24

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Ubuntu sidebar lite: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲7014.23 ▼0.141.86 ▲0.1844.44 ▲1.81
Dashboard /wp-admin2,195 ▲205.62 ▼0.1286.57 ▼18.8142.66 ▲1.37
Posts /wp-admin/edit.php2,103 ▲32.03 ▲0.0733.76 ▼0.6536.26 ▼0.04
Add New Post /wp-admin/post-new.php1,535 ▲918.20 ▼5.00619.15 ▼60.1477.36 ▲17.93
Media Library /wp-admin/upload.php1,400 ▼34.17 ▲0.0497.61 ▼8.9345.18 ▼0.43

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

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)
Even though everything seems fine, this is not 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 take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ubuntu-sidebar-lite/ubuntu-sidebar-lite.php:66

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Screenshots: Add an image for screenshot #1 (What the plugin looks like once installed on your blog or website.)
You can look at the official readme.txt

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

This is the main PHP file of "Ubuntu sidebar lite" version 0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
93 characters long description:
When activated, this plugin will put a Ubuntu sidebar lite on the right side of your website.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected42 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1111342

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
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%
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

All PNG images should be compressed to minimize bandwidth usage for end users
7 compressed PNG files occupy 0.06MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/download-ubuntu.png0.97KB0.81KB▼ 16.78%
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%