84% wp-custom-scroll

Code Review | Wp Custom Scroll

WordPress plugin Wp Custom Scroll scored84%from 54 tests.

About plugin

  • Plugin page: wp-custom-scroll
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.0.3
  • WordPress version: 6.3.1
  • First release: Jan 31, 2017
  • Latest release: Feb 3, 2019
  • Number of updates: 8
  • Update frequency: every 91.6 days
  • Top authors: Abhay Raj (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /624 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

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

A check of server-side resources used by Wp Custom Scroll
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.96 ▼0.92
Dashboard /wp-admin3.31 ▲0.0146.27 ▼2.55
Posts /wp-admin/edit.php3.36 ▲0.0148.20 ▼4.94
Add New Post /wp-admin/post-new.php5.89 ▲0.0178.99 ▼22.24
Media Library /wp-admin/upload.php3.23 ▲0.0132.23 ▼3.03

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Wp Custom Scroll
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,892 ▲14613.69 ▼0.686.95 ▲5.2239.47 ▼5.95
Dashboard /wp-admin2,212 ▲274.92 ▼0.98111.43 ▲5.7343.21 ▲0.45
Posts /wp-admin/edit.php2,098 ▲92.20 ▲0.1740.85 ▼0.5535.52 ▼1.74
Add New Post /wp-admin/post-new.php1,520 ▼823.31 ▲5.27645.72 ▲24.7556.94 ▼0.31
Media Library /wp-admin/upload.php1,397 ▲64.40 ▲0.2694.53 ▼0.3442.25 ▼2.35

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

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
The smoke test was a success, however most plugin functionality was not tested

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
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-custom-scroll/wp-custom-scroll.php:18

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

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (screenshot-1.jpg) image required
You can look at the official readme.txt

wp-custom-scroll/wp-custom-scroll.php Passed 13 tests

"Wp Custom Scroll" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
58 characters long description:
This plugin use for wordpress custom scroll on whole page.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected831 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
CSS1342113813
JavaScript23210
PHP13108

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions1
▷ Named functions1100.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
There were not PNG files found in your plugin