84% wp-photo-text-slider-50

Code Review | Wp photo text slider 50

WordPress plugin Wp photo text slider 50 scored84%from 54 tests.

About plugin

  • Plugin page: wp-photo-text-sli...
  • Plugin version: 8.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-6.4
  • WordPress version: 6.3.1
  • First release: Jul 3, 2011
  • Latest release: Oct 29, 2023
  • Number of updates: 63
  • Update frequency: every 71.5 days
  • Top authors: gopiplus (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /29,966 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼9.11ms] Passed 4 tests

An overview of server-side resources used by Wp photo text slider 50
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.25 ▼2.30
Dashboard /wp-admin3.32 ▼0.0342.08 ▼15.94
Posts /wp-admin/edit.php3.37 ▲0.0143.58 ▼0.89
Add New Post /wp-admin/post-new.php5.90 ▲0.0178.68 ▼14.06
Media Library /wp-admin/upload.php3.24 ▲0.0133.05 ▼4.14
Wp photo text slider /wp-admin/options-general.php?page=wp-photo-text-slider-503.2929.15

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 21 new files
Database: 1 new table, 11 new options
New tables
wp_wp_photo_50
New WordPress options
widget_recent-comments
wp_50_type
widget_theysaidso_widget
wp_50_direction
can_compress_scripts
wp_50_title
wp_50_speed
wp_50_timeout
widget_recent-posts
db_upgraded
...

Browser metrics Passed 4 tests

An overview of browser requirements for Wp photo text slider 50
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,905 ▲15913.81 ▼0.477.70 ▲5.8936.01 ▼1.62
Dashboard /wp-admin2,199 ▲225.65 ▼0.0582.31 ▼6.2739.33 ▼3.40
Posts /wp-admin/edit.php2,104 ▲42.01 ▲0.0332.73 ▼1.2833.04 ▼5.87
Add New Post /wp-admin/post-new.php1,529 ▲323.81 ▲0.18660.31 ▲4.4649.10 ▼7.74
Media Library /wp-admin/upload.php1,398 ▼54.19 ▲0.0194.15 ▼12.4640.39 ▼6.37
Wp photo text slider /wp-admin/options-general.php?page=wp-photo-text-slider-501,0742.1222.9725.76

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
  • 5× PHP files output text when accessed directly:
    • > /wp-content/plugins/wp-photo-text-slider-50/pages/image-setting.php
    • > /wp-content/plugins/wp-photo-text-slider-50/pages/image-management-add.php
    • > /wp-content/plugins/wp-photo-text-slider-50/pages/image-management-show.php
    • > /wp-content/plugins/wp-photo-text-slider-50/pages/image-management-edit.php
    • > /wp-content/plugins/wp-photo-text-slider-50/wp-photo-text-slider-50.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: photo, slider, plugin, wordpress

wp-photo-text-slider-50/wp-photo-text-slider-50.php Passed 13 tests

The principal PHP file in "Wp photo text slider 50" v. 8.1 is loaded by WordPress automatically on each request
120 characters long description:
Wordpress plugin Wp photo text slider 50 create a photo (photo + heading + description) slider on the wordpress website.

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
Success! There were no dangerous files found in this plugin2,410 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript21161231,145
PHP610644886
PO File2127182275
CSS11010104

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
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%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
inc/image-icon.png0.61KB0.66KB0.00%