83% parallax-scrolling-enllax-js

Code Review | Parallax Scrolling Enllax.js

WordPress plugin Parallax Scrolling Enllax.js scored 83% from 54 tests.

About plugin

  • Plugin page: parallax-scrollin...
  • Plugin version: 0.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.1
  • WordPress version: 6.3.1
  • First release: Aug 16, 2017
  • Latest release: Mar 18, 2019
  • Number of updates: 16
  • Update frequency: every 36.3 days
  • Top authors: snagysandor (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

400+ active / 8,291 total downloads

Benchmarks

Plugin footprint 83% 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: ▲0.05MB] [CPU: ▼5.91ms] Passed 4 tests

A check of server-side resources used by Parallax Scrolling Enllax.js
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0536.76 ▼6.39
Dashboard /wp-admin3.35 ▲0.0547.21 ▼6.78
Posts /wp-admin/edit.php3.41 ▲0.0551.68 ▲8.43
Add New Post /wp-admin/post-new.php5.94 ▲0.0586.87 ▼11.79
Media Library /wp-admin/upload.php3.28 ▲0.0536.38 ▲1.34
Enllax /wp-admin/options-general.php?page=enllax3.2431.79

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Parallax Scrolling Enllax.js
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,836 ▲7913.27 ▼1.282.59 ▲0.7642.39 ▼9.52
Dashboard /wp-admin2,204 ▲165.81 ▲0.92100.48 ▼12.7036.97 ▼2.36
Posts /wp-admin/edit.php2,100 ▲112.00 ▼0.0439.44 ▼2.3938.96 ▲2.79
Add New Post /wp-admin/post-new.php1,536 ▲323.16 ▲0.11651.95 ▲42.6549.09 ▼2.78
Media Library /wp-admin/upload.php1,392 ▲44.17 ▼0.0694.68 ▼10.3941.56 ▼1.89
Enllax /wp-admin/options-general.php?page=enllax8462.0222.0027.13

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • parallax_scrolling_enllax_settings
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/parallax-scrolling-enllax-js/parallax-scrolling-enllax-js.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Contributors: Please add at least on tag
  • Contributors: Plugin contributors not specified
You can take inspiration from this readme.txt

parallax-scrolling-enllax-js/parallax-scrolling-enllax-js.php 92% from 13 tests

Analyzing the main PHP file in "Parallax Scrolling Enllax.js" version 0.0.6
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 235 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 plugin387 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript3233160
PHP11523154
PO File1192173

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.05
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%
Functions16
▷ Named functions16100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
enllax-button.png0.24KB0.15KB▼ 39.52%