83% awesome-parallax-effects

Code Review | Awesome Parallax Effects

WordPress plugin Awesome Parallax Effects scored83%from 54 tests.

About plugin

  • Plugin page: awesome-parallax-...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.8
  • WordPress version: 6.3.1
  • First release: Nov 11, 2021
  • Latest release: Nov 11, 2021
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: saiarlen (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /1,035 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

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

Server-side resources used by Awesome Parallax Effects
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0139.76 ▼7.02
Dashboard /wp-admin3.32 ▲0.0149.01 ▼5.12
Posts /wp-admin/edit.php3.37 ▲0.0155.89 ▲8.86
Add New Post /wp-admin/post-new.php5.92 ▲0.0388.36 ▼4.97
Media Library /wp-admin/upload.php3.25 ▲0.0138.36 ▲4.19

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Awesome Parallax Effects
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,863 ▲10214.75 ▲0.514.42 ▲2.5542.55 ▼0.88
Dashboard /wp-admin2,213 ▲395.67 ▲0.0185.61 ▼14.4840.91 ▼2.51
Posts /wp-admin/edit.php2,121 ▲212.06 ▲0.0542.73 ▲3.6236.44 ▲0.82
Add New Post /wp-admin/post-new.php1,543 ▲1723.09 ▼0.07660.90 ▼20.5558.76 ▲3.44
Media Library /wp-admin/upload.php1,418 ▲244.15 ▼0.07116.36 ▲13.6147.89 ▼1.61

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 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/awesome-parallax-effects/inc/almsadmin.php:12

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 83% 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
5 plugin tags: animation, effects, elementor, parallax, page builder

awesome-parallax-effects/arlen-awesome-parallax.php 62% from 13 tests

The principal PHP file in "Awesome Parallax Effects" v. 1.0.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Domain Path: The domain path must begin with a forward slash character ("/languages")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Domain Path: Use only dashes and lowercase characters for the domain path ("languages")
  • Description: Please keep the plugin description shorter than 140 characters (currently 149 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("awesome-parallax-effects.php" instead of "arlen-awesome-parallax.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin168 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP54741165
JavaScript11072
CSS1001

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
PNG images were not found in this plugin