10% material-sidebar-posts

Code Review | Material Sidebar Posts

WordPress plugin Material Sidebar Posts scored10%from 54 tests.

About plugin

  • Plugin page: material-sidebar-...
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8.2-4.8.2
  • WordPress version: 6.3.1
  • First release: Nov 21, 2017
  • Latest release: Nov 22, 2017
  • Number of updates: 8
  • Update frequency: every 0.3 days
  • Top authors: siprasaloni (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /646 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/material-sidebar-posts/material-sidebar-posts.php+247
    Function create_function() is deprecated

Server metrics [RAM: ▼1.96MB] [CPU: ▼58.44ms] Passed 4 tests

Server-side resources used by Material Sidebar Posts
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.444.22 ▼37.11
Dashboard /wp-admin2.05 ▼1.266.05 ▼46.17
Posts /wp-admin/edit.php2.05 ▼1.315.95 ▼52.33
Add New Post /wp-admin/post-new.php2.05 ▼3.844.94 ▼98.14
Media Library /wp-admin/upload.php2.05 ▼1.185.65 ▼31.81

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
widget_material_sp_list
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Material Sidebar Posts
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲3114.73 ▲0.331.88 ▼0.2341.07 ▼4.34
Dashboard /wp-admin2,209 ▲185.88 ▼0.02103.53 ▲4.4040.62 ▲0.18
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0542.17 ▲0.6136.99 ▼0.03
Add New Post /wp-admin/post-new.php1,514 ▼1417.52 ▼5.79631.46 ▼12.2149.90 ▼2.34
Media Library /wp-admin/upload.php1,391 ▲34.29 ▲0.13102.31 ▼2.2047.03 ▲0.51

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/material-sidebar-posts/material-sidebar-posts.php+247
    Function create_function() is deprecated
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_theysaidso_widget
    • widget_material_sp_list
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 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
The SRP test was a success

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
9 plugin tags: posts, widget, post date, sidebar, excerpt...

material-sidebar-posts/material-sidebar-posts.php 85% from 13 tests

The main file in "Material Sidebar Posts" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Requires at least: Required version does not match the one declared in readme.txt ("4.5" instead of "4.8.2")
  • Description: The description should be shorter than 140 characters (currently 142 characters long)

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 detected288 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1325220
CSS10068

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There were not PNG files found in your plugin