62% ciusan-nice-scroll

Code Review | Ciusan Nice Scroll

WordPress plugin Ciusan Nice Scroll scored62%from 54 tests.

About plugin

  • Plugin page: ciusan-nice-scroll
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-4.1.1
  • WordPress version: 6.3.1
  • First release: Mar 14, 2015
  • Latest release: Mar 15, 2015
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: k0z3y (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,288 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼1.23MB] [CPU: ▼44.00ms] Passed 4 tests

Server-side resources used by Ciusan Nice Scroll
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.74 ▼0.7213.04 ▼23.14
Dashboard /wp-admin2.78 ▼0.5215.93 ▼38.67
Posts /wp-admin/edit.php2.78 ▼0.5720.64 ▼34.39
Add New Post /wp-admin/post-new.php2.78 ▼3.1017.20 ▼79.78
Media Library /wp-admin/upload.php2.78 ▼0.4519.79 ▼12.73
Submit a Donation /wp-admin/admin.php?page=ciusan-submit-donation2.7817.40
Nice Scroll /wp-admin/admin.php?page=ciusan-nice-scroll2.7816.33

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Ciusan Nice Scroll
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,953 ▲21813.79 ▼0.585.87 ▲4.1040.22 ▼1.36
Dashboard /wp-admin2,252 ▲675.11 ▲0.21104.48 ▼7.7080.32 ▲36.92
Posts /wp-admin/edit.php2,135 ▲462.52 ▲0.4739.85 ▼10.2037.01 ▲3.07
Add New Post /wp-admin/post-new.php1,707 ▲19322.41 ▲4.95737.72 ▲67.1136.56 ▼15.76
Media Library /wp-admin/upload.php1,428 ▲434.37 ▲0.10111.76 ▲14.5044.74 ▲3.07
Submit a Donation /wp-admin/admin.php?page=ciusan-submit-donation8082.1925.4822.51
Nice Scroll /wp-admin/admin.php?page=ciusan-nice-scroll8642.2631.2330.53

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 without warnings or errors
    • > Warning in wp-content/plugins/ciusan-nice-scroll/ciusan-nice-scroll.php+65
    Use of undefined constant ciusan_admin__head - assumed 'ciusan_admin__head' (this will throw an Error in a future version of PHP)
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=ciusan-nice-scroll
    • > Warning in wp-content/plugins/ciusan-nice-scroll/ciusan-nice-scroll.php+65
    Use of undefined constant ciusan_admin__head - assumed 'ciusan_admin__head' (this will throw an Error in a future version of PHP)
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=ciusan-nice-scroll
    • > User deprecated in wp-includes/functions.php+5453
    Function add_object_page is deprecated since version 4.5.0! Use add_menu_page() instead.
  • 10 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=ciusan-nice-scroll
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
    • > GET request to /wp-admin/admin.php?page=ciusan-submit-donation
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, function 'ciusan_submit_donation' not found or invalid function name
    • > GET request to /wp-admin/admin.php?page=ciusan-nice-scroll
    • > Warning in wp-content/plugins/ciusan-nice-scroll/admin_menu.php+15
    Use of undefined constant CSN_Enable - assumed 'CSN_Enable' (this will throw an Error in a future version of PHP)
    • > GET request to /wp-admin/admin.php?page=ciusan-nice-scroll
    • > Notice in wp-content/plugins/ciusan-nice-scroll/admin_menu.php+15
    Trying to access array offset on value of type bool

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
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ciusan-nice-scroll/ciusan-nice-scroll.php:22

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=ciusan-nice-scroll
    • > Network (severe)
    wp-content/plugins/ciusan-nice-scroll/assets/css/ciusan.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=ciusan-nice-scroll
    • > Network (severe)
    wp-content/plugins/ciusan-nice-scroll/assets/js/ciusan.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (All settings on WP Dashboard.) image required
Please take inspiration from this readme.txt

ciusan-nice-scroll/ciusan-nice-scroll.php Passed 13 tests

The principal PHP file in "Ciusan Nice Scroll" v. 1.0 is loaded by WordPress automatically on each request
53 characters long description:
Nice scrollbars with a very similar ios/mobile style.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin387 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
CSS232154
JavaScript331134
PHP342499

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.05MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png26.98KB7.31KB▼ 72.92%
assets/img/ciusan.png22.87KB0.53KB▼ 97.67%