89% wpfy-scroller

Code Review | WPFY Scroller

WordPress plugin WPFY Scroller scored89%from 54 tests.

About plugin

  • Plugin page: wpfy-scroller
  • Plugin version: 1.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.0
  • WordPress version: 6.3.1
  • First release: Aug 20, 2022
  • Latest release: Sep 24, 2022
  • Number of updates: 8
  • Update frequency: every 4.4 days
  • Top authors: wpfy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /227 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

This is a short check of server-side resources used by WPFY Scroller
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0342.33 ▼4.46
Dashboard /wp-admin3.35 ▲0.0448.65 ▼3.26
Posts /wp-admin/edit.php3.40 ▲0.0447.70 ▲2.42
Add New Post /wp-admin/post-new.php5.95 ▲0.0696.91 ▲8.36
Media Library /wp-admin/upload.php3.27 ▲0.0440.42 ▲4.99
WPFY Scroller /wp-admin/options-general.php?page=wpfy-scroller-settings-page3.2434.51

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

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

Browser metrics Passed 4 tests

WPFY Scroller: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,928 ▲16713.56 ▼0.8010.70 ▲8.6445.32 ▼0.31
Dashboard /wp-admin2,221 ▲415.81 ▲0.1593.27 ▼7.1539.45 ▼3.90
Posts /wp-admin/edit.php2,128 ▲312.29 ▲0.3041.24 ▲6.0235.76 ▼0.10
Add New Post /wp-admin/post-new.php1,543 ▲1723.73 ▲0.21673.25 ▼22.4536.34 ▼26.32
Media Library /wp-admin/upload.php1,417 ▲174.32 ▲0.11104.66 ▲10.7446.60 ▲2.13
WPFY Scroller /wp-admin/options-general.php?page=wpfy-scroller-settings-page1,0652.5950.4625.80

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • 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
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

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)
No browser errors were detected

Optimizations

Plugin configuration 90% 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 require images: #1 (Screenshot-1.png), #2 (Screenshot-2.png)
The official readme.txt is a good inspiration

wpfy-scroller/wpfy-scroller.php 85% from 13 tests

The main PHP script in "WPFY Scroller" version 1.1 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Domain Path: The domain path folder was not found ("/languages")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin216 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP11923157
CSS14537
JavaScript20122

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.06
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin