84% post-scroll-widget

Code Review | Post Scroll Widget

WordPress plugin Post Scroll Widget scored84%from 54 tests.

About plugin

  • Plugin page: post-scroll-widget
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.4.2
  • WordPress version: 6.3.1
  • First release: Mar 24, 2016
  • Latest release: Apr 1, 2016
  • Number of updates: 8
  • Update frequency: every 1.0 days
  • Top authors: shafiqul (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /2,297 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼2.70ms] Passed 4 tests

Analyzing server-side resources used by Post Scroll Widget
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0441.74 ▼5.60
Dashboard /wp-admin3.35 ▲0.0451.04 ▼3.21
Posts /wp-admin/edit.php3.40 ▲0.0448.22 ▼5.52
Add New Post /wp-admin/post-new.php5.93 ▲0.04123.84 ▲19.97
Media Library /wp-admin/upload.php3.27 ▲0.0440.07 ▲3.54

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_gcz_post_scroll_widget_id
widget_recent-comments
widget_theysaidso_widget
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Post Scroll Widget
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲6113.57 ▼1.105.33 ▲3.5146.52 ▲2.73
Dashboard /wp-admin2,203 ▲125.79 ▼0.0698.18 ▼20.2342.06 ▼6.45
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0235.71 ▲0.4233.13 ▼2.80
Add New Post /wp-admin/post-new.php1,520 ▼1323.19 ▼0.10659.11 ▼23.0251.34 ▼10.58
Media Library /wp-admin/upload.php1,391 ▲34.21 ▲0.0192.98 ▼17.6941.54 ▼4.14

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_gcz_post_scroll_widget_id
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

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
The following issues need your attention
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/post-scroll-widget/inc/Class-post-scroll-widget.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/post-scroll-widget/post-scroll-widget.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/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 require attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Widget Option), #2 (Scroll Post Vertical and Horizontal)
The official readme.txt might help

post-scroll-widget/post-scroll-widget.php Passed 13 tests

The entry point to "Post Scroll Widget" version 1.0.1 is a PHP file that has certain tags in its header comment area
119 characters long description:
This is a Simple Post Scroll Widget. Easily Manage This widget. Latest Post and Category post you can show scroll item.

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
There were no executable files found in this plugin253 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP22314181
CSS10171
JavaScript1041

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity4.25
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png43.02KB12.12KB▼ 71.82%
screenshot-2.png15.51KB8.43KB▼ 45.67%