78% wxy-tools-stickyscroll

Code Review | WXY Tools Stickyscroll

WordPress plugin WXY Tools Stickyscroll scored78%from 54 tests.

About plugin

  • Plugin page: wxy-tools-stickys...
  • Plugin version: 0.0.5
  • PHP compatiblity: 5.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.4.2
  • WordPress version: 6.3.1
  • First release: Jun 20, 2020
  • Latest release: Jul 13, 2020
  • Number of updates: 4
  • Update frequency: every 62.8 days
  • Top authors: exoboy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /546 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.02MB] [CPU: ▼14.25ms] Passed 4 tests

Analyzing server-side resources used by WXY Tools Stickyscroll
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0246.25 ▲3.10
Dashboard /wp-admin3.33 ▼0.0147.83 ▼18.89
Posts /wp-admin/edit.php3.39 ▲0.0354.43 ▼2.13
Add New Post /wp-admin/post-new.php5.93 ▲0.0587.25 ▼37.89
Media Library /wp-admin/upload.php3.26 ▲0.0337.94 ▲1.92
WXY Tools Stickyscroll /wp-admin/options-general.php?page=wxy_tools_stickyscroll_settings_page3.2334.28

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by WXY Tools Stickyscroll
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲3914.24 ▼0.111.71 ▼0.0644.23 ▲1.40
Dashboard /wp-admin2,203 ▲265.53 ▼0.0089.41 ▼9.6540.71 ▼7.43
Posts /wp-admin/edit.php2,111 ▲81.99 ▼0.0336.85 ▼2.1033.06 ▼9.47
Add New Post /wp-admin/post-new.php1,538 ▲1223.15 ▼0.27598.65 ▼72.0156.76 ▲0.40
Media Library /wp-admin/upload.php1,411 ▲114.24 ▲0.01100.16 ▼10.8447.20 ▼3.13
WXY Tools Stickyscroll /wp-admin/options-general.php?page=wxy_tools_stickyscroll_settings_page1,0135.75164.9858.22

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 50% 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 0% 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 fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/wxy-tools-stickyscroll/options/wxy-tools-stickyscroll-options-page.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wxy-tools-stickyscroll/wxy-tools-stickyscroll.php:20

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 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === wxy-tools-stickyscroll === )
  • Donate link: Please fix this invalid URI: ""
The official readme.txt might help

wxy-tools-stickyscroll/wxy-tools-stickyscroll.php 92% from 13 tests

The entry point to "WXY Tools Stickyscroll" version 0.0.5 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 255 characters long)

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
Everything looks great! No dangerous files found in this plugin540 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1198311381
PHP25981159

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.28
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%
Functions8
▷ Named functions8100.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
There are no PNG files in this plugin