84% scroll-widget-for-eventprime

Code Review | Scroll Widget for EventPrime

WordPress plugin Scroll Widget for EventPrime scored84%from 54 tests.

About plugin

  • Plugin page: scroll-widget-for...
  • Plugin version: 1.6.1
  • PHP compatiblity: 8.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8.0-6.2
  • WordPress version: 6.3.1
  • First release: Mar 15, 2023
  • Latest release: Aug 7, 2023
  • Number of updates: 56
  • Update frequency: every 2.6 days
  • Top authors: s_i_l_l_e (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /254 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 successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Scroll Widget for EventPrime
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.06 ▼7.27
Dashboard /wp-admin3.31 ▼0.0443.82 ▼14.57
Posts /wp-admin/edit.php3.36 ▲0.0047.68 ▼3.01
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.12 ▼17.02
Media Library /wp-admin/upload.php3.23 ▲0.0034.14 ▲0.87

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Scroll Widget for EventPrime
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲5413.27 ▼1.031.93 ▼0.2441.61 ▼6.98
Dashboard /wp-admin2,200 ▲125.85 ▲0.7899.66 ▼7.6040.14 ▼5.12
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0034.54 ▼6.8432.29 ▼4.48
Add New Post /wp-admin/post-new.php1,538 ▼023.02 ▼0.20643.36 ▼1.5559.60 ▲8.37
Media Library /wp-admin/upload.php1,388 ▼34.28 ▼0.0297.33 ▲0.8939.82 ▼4.44

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/scroll-widget-for-eventprime/scroll-widget-for-eventprime.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: widget, event, eventprime, scroll, free...

scroll-widget-for-eventprime/scroll-widget-for-eventprime.php 92% from 13 tests

The main file in "Scroll Widget for EventPrime" v. 1.6.1 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:
  • Description: Please keep the plugin description shorter than 140 characters (currently 181 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
There were no executable files found in this plugin326 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP15823293
PO File171733

PHP code Passed 2 tests

A brief analysis 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.26
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions888.89%
▷ Anonymous functions111.11%
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
3 PNG files occupy 0.22MB with 0.12MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-256x256.png13.76KB6.21KB▼ 54.85%
assets/banner-1544x500.png149.26KB64.47KB▼ 56.81%
assets/banner-772x250.png58.64KB23.22KB▼ 60.40%