84% parallaxer-lite-parallax-effects-on-images

Code Review | Parallaxer - Parallax Effect on Content

WordPress plugin Parallaxer - Parallax Effect on Content scored84%from 54 tests.

About plugin

  • Plugin page: parallaxer-lite-p...
  • Plugin version: 1.00
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.1
  • WordPress version: 6.3.1
  • First release: Dec 23, 2014
  • Latest release: Dec 23, 2014
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: digitalzoomstudio (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

80+ active /3,939 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

An overview of server-side resources used by Parallaxer - Parallax Effect on Content
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.50 ▲1.96
Dashboard /wp-admin3.31 ▲0.0151.10 ▲0.83
Posts /wp-admin/edit.php3.36 ▲0.0152.16 ▲5.49
Add New Post /wp-admin/post-new.php5.89 ▲0.0195.69 ▼3.90
Media Library /wp-admin/upload.php3.24 ▲0.0135.44 ▼0.68

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Parallaxer - Parallax Effect on Content
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,893 ▲13213.76 ▼0.638.04 ▲6.3043.17 ▲0.19
Dashboard /wp-admin2,198 ▲205.58 ▼0.1395.24 ▼9.5241.48 ▼5.02
Posts /wp-admin/edit.php2,103 ▲62.00 ▲0.0639.70 ▲3.7735.77 ▼4.83
Add New Post /wp-admin/post-new.php1,535 ▲918.29 ▼5.33652.76 ▼21.8566.98 ▲7.97
Media Library /wp-admin/upload.php1,397 ▲34.22 ▼0.0099.55 ▲3.9646.33 ▲3.23

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/parallaxer-lite-parallax-effects-on-images/class-parallaxer.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
2 plugin tags: comments, spam

parallaxer-lite-parallax-effects-on-images/parallaxer.php 92% from 13 tests

"Parallaxer - Parallax Effect on Content" version 1.00's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("parallaxer-lite-parallax-effects-on-images.php" instead of "parallaxer.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected3,956 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
CSS36211,761
XML870814
PHP323885700
SVG100520
Sass126598
JavaScript27232
PO File17731

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.57
Average class complexity40.50
▷ Minimum class complexity18.00
▷ Maximum class complexity63.00
Average method complexity5.39
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods18
▷ Static methods1055.56%
▷ Public methods18100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected