89% tx-responsive-slider

Code Review | Tx Responsive Slider

WordPress plugin Tx Responsive Slider scored 89% from 54 tests.

About plugin

  • Plugin page: tx-responsive-slider
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 5.8.1
  • First release: Dec 17, 2020
  • Latest release: Dec 17, 2020
  • Number of updates: 7
  • Update frequency: every 1.0 days
  • Top authors: themexpo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 110 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.17MB] [CPU: ▼137.29ms] Passed 4 tests

An overview of server-side resources used by Tx Responsive Slider
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.91 ▲0.1932.05 ▲10.66
Dashboard /wp-admin3.27 ▲0.2151.76 ▲11.69
Posts /wp-admin/edit.php3.31 ▲0.2042.77 ▲0.61
Add New Post /wp-admin/post-new.php5.57 ▲0.1491.36 ▼555.31
Media Library /wp-admin/upload.php3.14 ▲0.1332.67 ▼5.13
Settings /wp-admin/edit.php?post_type=txresponsiveslider&page=slider_setting3.1129.56
Add New Responsive Slider /wp-admin/post-new.php?post_type=txresponsiveslider3.2346.38
All Responsive Slider /wp-admin/edit.php?post_type=txresponsiveslider3.1832.26

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 2 new options
New WordPress options
themexpo_version
themexpo_installed

Browser metrics Passed 4 tests

Checking browser requirements for Tx Responsive Slider
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,957 ▲36116.46 ▲0.6423.96 ▲15.5557.96 ▲10.97
Dashboard /wp-admin3,013 ▲825.95 ▼0.06156.75 ▲1.14108.72 ▼8.56
Posts /wp-admin/edit.php2,779 ▲402.69 ▼0.0162.85 ▼5.7689.20 ▼6.35
Add New Post /wp-admin/post-new.php1,641 ▲14321.78 ▲2.90265.91 ▼96.68102.78 ▼12.90
Media Library /wp-admin/upload.php1,847 ▲405.04 ▲0.04162.30 ▲12.12120.78 ▼2.81
Settings /wp-admin/edit.php?post_type=txresponsiveslider&page=slider_setting1,1802.0959.3886.21
Add New Responsive Slider /wp-admin/post-new.php?post_type=txresponsiveslider2,2604.54100.1086.58
All Responsive Slider /wp-admin/edit.php?post_type=txresponsiveslider1,4702.6263.6575.37

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 2 options
    • themexpo_installed
    • themexpo_version

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes: You can look at the official readme.txt

tx-responsive-slider/Tx_responnsive_slider.php 92% from 13 tests

"Tx Responsive Slider" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("tx-responsive-slider.php" instead of "Tx_responnsive_slider.php")

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
Everything looks great! No dangerous files found in this plugin834 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP13244262732
CSS2121380
JSON20021
JavaScript1011

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity11.88
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.71
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes112.50%
Methods52
▷ Static methods47.69%
▷ Public methods5198.08%
▷ Protected methods00.00%
▷ Private methods11.92%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants5
▷ Global constants480.00%
▷ Class constants120.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin