84% image-parallax

Code Review | Image Parallax

WordPress plugin Image Parallax scored84%from 54 tests.

About plugin

  • Plugin page: image-parallax
  • Plugin version: 2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9.1-3.9.1
  • WordPress version: 6.3.1
  • First release: May 14, 2012
  • Latest release: Jun 16, 2014
  • Number of updates: 48
  • Update frequency: every 15.9 days
  • Top authors: WebMaestro.Fr (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

200+ active /15,207 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 gracefully, with no errors

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

Analyzing server-side resources used by Image Parallax
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.93 ▲5.77
Dashboard /wp-admin3.31 ▲0.0145.27 ▼0.71
Posts /wp-admin/edit.php3.36 ▲0.0144.24 ▲2.44
Add New Post /wp-admin/post-new.php5.92 ▲0.0379.13 ▼16.25
Media Library /wp-admin/upload.php3.24 ▲0.0136.78 ▲2.47

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
wm-parallax-version
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Image Parallax
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.47 ▲0.121.97 ▲0.5044.01 ▲5.58
Dashboard /wp-admin2,195 ▲145.61 ▼0.0693.84 ▼9.0846.19 ▲2.97
Posts /wp-admin/edit.php2,097 ▼32.02 ▲0.0238.36 ▲4.5732.39 ▼8.08
Add New Post /wp-admin/post-new.php1,536 ▲823.18 ▲0.12694.33 ▲56.7351.79 ▼3.81
Media Library /wp-admin/upload.php1,403 ▲34.21 ▲0.0192.62 ▼17.9440.11 ▼5.06

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • wm-parallax-version
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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 fix the following items
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/image-parallax/plugin.php:143
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/image-parallax/tpl/settings.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/image-parallax/tpl/editor.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% 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
4 plugin tags: picture, 3d, image, parallax

image-parallax/plugin.php 85% from 13 tests

This is the main PHP file of "Image Parallax" version 2.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • 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
  • Main file name: The principal plugin file should be the same as the plugin slug ("image-parallax.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected548 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript4814283
PHP31416188
CSS34077

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity19.00
▷ Minimum class complexity19.00
▷ Maximum class complexity19.00
Average method complexity3.57
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods7100.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.24MB with 0.07MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png248.67KB97.95KB▼ 60.61%
img/parallax.png1.12KB1.24KB0.00%