84% debian-sidebar

Code Review | Debian sidebar

WordPress plugin Debian sidebar scored84%from 54 tests.

About plugin

  • Plugin page: debian-sidebar
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.2-3.9.2
  • WordPress version: 6.3.1
  • First release: May 22, 2013
  • Latest release: Jan 30, 2015
  • Number of updates: 8
  • Update frequency: every 77.3 days
  • Top authors: zpop (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,027 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.00MB] [CPU: ▼8.73ms] Passed 4 tests

A check of server-side resources used by Debian sidebar
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.44 ▼4.80
Dashboard /wp-admin3.31 ▲0.0144.59 ▼9.23
Posts /wp-admin/edit.php3.36 ▲0.0045.35 ▼7.00
Add New Post /wp-admin/post-new.php5.89 ▲0.0079.45 ▼13.88
Media Library /wp-admin/upload.php3.23 ▲0.0031.63 ▼0.22
Debian Sidebar /wp-admin/options-general.php?page=debiansidebar3.2030.96

Server storage [IO: ▲0.18MB] [DB: ▲0.07MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Debian sidebar
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,895 ▲14914.01 ▼0.375.79 ▲4.0137.49 ▼7.17
Dashboard /wp-admin2,209 ▲215.81 ▼0.10108.63 ▼7.4537.08 ▼8.91
Posts /wp-admin/edit.php2,095 ▲62.03 ▼0.0040.06 ▲3.5634.24 ▼1.14
Add New Post /wp-admin/post-new.php1,537 ▲922.94 ▼0.54663.30 ▼4.9266.95 ▲13.06
Media Library /wp-admin/upload.php1,394 ▲64.23 ▲0.0494.52 ▼0.6345.42 ▲5.52
Debian Sidebar /wp-admin/options-general.php?page=debiansidebar9971.9736.4144.66

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/debian-sidebar/debian-sidebar.php:33

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Screenshots: Add images for these screenshots: #1 (What the plugin looks like once installed on your blog or website.), #2 (Info.), #3 (Debian media Buttons.), #4 (Options.)
You can take inspiration from this readme.txt

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

"Debian sidebar" version 0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
79 characters long description:
Add Debian 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
Everything looks great! No dangerous files found in this plugin193 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1727151
JavaScript161242

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.15
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

PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 0.15MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png27.88KB11.24KB▼ 59.70%
screenshot-3.png37.23KB15.48KB▼ 58.42%
images/why-debian.png1.29KB0.97KB▼ 24.62%
images/download-debian.png0.81KB0.44KB▼ 45.22%
images/debian-org.png1.75KB1.22KB▼ 30.17%