77% juxtapose-images

Code Review | Juxtapose Images

WordPress plugin Juxtapose Images scored77%from 54 tests.

About plugin

  • Plugin page: juxtapose-images
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.4
  • WordPress version: 6.3.1
  • First release: Dec 30, 2015
  • Latest release: Jan 1, 2016
  • Number of updates: 4
  • Update frequency: every 0.5 days
  • Top authors: cosmotravel (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /3,015 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.00MB] [CPU: ▼8.58ms] Passed 4 tests

Server-side resources used by Juxtapose Images
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.55 ▼10.72
Dashboard /wp-admin3.32 ▼0.0343.59 ▼15.74
Posts /wp-admin/edit.php3.37 ▲0.0145.16 ▼5.56
Add New Post /wp-admin/post-new.php5.90 ▲0.0191.58 ▲3.43
Media Library /wp-admin/upload.php3.24 ▲0.0134.33 ▼2.29
Juxtapose Images /wp-admin/options-general.php?page=juxtapose3.2327.44

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

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

Browser metrics Passed 4 tests

Juxtapose Images: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.25 ▼1.134.05 ▲2.3239.48 ▼1.84
Dashboard /wp-admin2,213 ▲254.85 ▼0.09108.35 ▲5.7539.14 ▲1.36
Posts /wp-admin/edit.php2,093 ▲42.04 ▲0.0338.82 ▲3.6334.03 ▼3.80
Add New Post /wp-admin/post-new.php1,545 ▲1218.21 ▼4.96620.17 ▼84.9755.17 ▼8.09
Media Library /wp-admin/upload.php1,392 ▲14.29 ▲0.0396.23 ▼16.8143.68 ▼4.66
Juxtapose Images /wp-admin/options-general.php?page=juxtapose8412.0422.3530.10

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
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

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

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/juxtapose-images/templates/admin/settings.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/juxtapose-images/juxtapose.php:194

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Donate link: Invalid URI ("")
  • Screenshots: Add images for these screenshots: #1 (This the way to create a juxtapose slider.), #2 (This picture shows what will see your users.)
You can look at the official readme.txt

juxtapose-images/juxtapose.php 85% from 13 tests

The primary PHP file in "Juxtapose Images" version 1.0.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("juxtapose-images.php" instead of "juxtapose.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 252 characters long)

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
No dangerous file extensions were detected1,017 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript211432592
CSS1536284
PHP26345141

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity11.50
▷ Minimum class complexity10.00
▷ Maximum class complexity13.00
Average method complexity3.10
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods10
▷ Static methods220.00%
▷ Public methods990.00%
▷ Protected methods110.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

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin