84% mythic-smooth-scroll

Code Review | Mythic Smooth Scroll

WordPress plugin Mythic Smooth Scroll scored84%from 54 tests.

About plugin

  • Plugin page: mythic-smooth-scroll
  • Plugin version: 1.0.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.6
  • WordPress version: 6.3.1
  • First release: Oct 22, 2018
  • Latest release: Jan 12, 2021
  • Number of updates: 9
  • Update frequency: every 90.5 days
  • Top authors: corybolles (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /843 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.16ms] Passed 4 tests

This is a short check of server-side resources used by Mythic Smooth Scroll
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.90 ▼6.65
Dashboard /wp-admin3.32 ▲0.0241.91 ▼11.14
Posts /wp-admin/edit.php3.37 ▲0.0246.68 ▼1.38
Add New Post /wp-admin/post-new.php5.90 ▲0.0290.63 ▲3.18
Media Library /wp-admin/upload.php3.25 ▲0.0235.19 ▲2.53
Mythic Smooth Scroll /wp-admin/options-general.php?page=mythic-smooth-scroll3.2130.48

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Mythic Smooth Scroll
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,913 ▲16713.58 ▼0.799.26 ▲7.4039.03 ▼9.36
Dashboard /wp-admin2,207 ▲195.82 ▼0.0797.21 ▼18.4240.45 ▼3.13
Posts /wp-admin/edit.php2,090 ▲12.05 ▲0.0436.83 ▲0.7232.96 ▼1.93
Add New Post /wp-admin/post-new.php1,536 ▲2223.25 ▲5.62710.35 ▼6.9260.99 ▲4.69
Media Library /wp-admin/upload.php1,392 ▲44.25 ▲0.0296.04 ▼10.4343.31 ▲0.80
Mythic Smooth Scroll /wp-admin/options-general.php?page=mythic-smooth-scroll7932.0324.3026.85

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • widget_recent-comments
    • mythic_ss_offset_amount
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • mythic_ss_header_id
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

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
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/mythic-smooth-scroll/mythic-smooth-scroll.php:33

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: smooth, scroll, anchors, jquery

mythic-smooth-scroll/mythic-smooth-scroll.php Passed 13 tests

The main PHP script in "Mythic Smooth Scroll" version 1.0.4 is automatically included on every request by WordPress
74 characters long description:
Simple jQuery smooth scroll plugin with optional offset for fixed headers.

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
Success! There were no dangerous files found in this plugin79 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2212750
JavaScript19129

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.09
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%
Functions4
▷ Named functions4100.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