84% wp-slide-in-widget

Code Review | Wordpress Slide In Widget

WordPress plugin Wordpress Slide In Widget scored84%from 54 tests.

About plugin

  • Plugin page: wp-slide-in-widget
  • Plugin version: 0.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-4.8
  • WordPress version: 6.3.1
  • First release: Nov 15, 2018
  • Latest release: Nov 15, 2018
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: dvpl (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /640 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

This is a short check of server-side resources used by Wordpress Slide In Widget
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.86 ▼2.84
Dashboard /wp-admin3.32 ▲0.0146.85 ▼2.21
Posts /wp-admin/edit.php3.37 ▲0.0149.24 ▼2.13
Add New Post /wp-admin/post-new.php5.90 ▲0.0183.93 ▼12.70
Media Library /wp-admin/upload.php3.24 ▲0.0133.13 ▲0.79

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Wordpress Slide In Widget
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,847 ▲11213.18 ▼1.202.30 ▲0.4236.96 ▼14.23
Dashboard /wp-admin2,222 ▲314.88 ▼0.01107.03 ▲3.6941.61 ▼2.70
Posts /wp-admin/edit.php2,105 ▲162.04 ▼0.0240.14 ▼4.7233.85 ▼3.18
Add New Post /wp-admin/post-new.php1,546 ▲2623.40 ▲0.06673.40 ▲33.9762.67 ▲10.69
Media Library /wp-admin/upload.php1,404 ▲254.14 ▼0.0995.62 ▼3.9140.42 ▼2.31

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

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
Please fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/wp-slide-in-widget/wp-slide-in-widget.php

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

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed: The official readme.txt might help

wp-slide-in-widget/wp-slide-in-widget.php Passed 13 tests

This is the main PHP file of "Wordpress Slide In Widget" version 0.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
43 characters long description:
Add simple slide in widget to 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 detected182 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP24631149
CSS12020
JavaScript10213

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/default-icon.png0.34KB0.24KB▼ 30.88%