100% slider-revolution-search-replace

Code Review | Slider Revolution Search Replace

WordPress plugin Slider Revolution Search Replace scored 100% from 54 tests.

About plugin

  • Plugin page: slider-revolution...
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.4
  • WordPress version: 5.8.1
  • First release: May 7, 2020
  • Latest release: May 7, 2020
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: dhavalkasvala (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

900+ active / 15,516 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by Slider Revolution Search Replace
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.83 ▲0.1243.41 ▲19.65
Dashboard /wp-admin3.06 ▲0.0046.60 ▼5.22
Posts /wp-admin/edit.php3.11 ▼0.0157.64 ▲2.20
Add New Post /wp-admin/post-new.php5.42 ▼0.02104.52 ▼684.95
Media Library /wp-admin/upload.php3.00 ▲0.0029.02 ▼9.55

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Slider Revolution Search Replace
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10715.90 ▲0.329.25 ▼1.7750.31 ▼0.51
Dashboard /wp-admin2,973 ▲425.96 ▼0.02143.06 ▲6.79116.53 ▼3.80
Posts /wp-admin/edit.php2,717 ▼222.72 ▼0.0074.88 ▼9.17129.53 ▲41.62
Add New Post /wp-admin/post-new.php1,683 ▼018.76 ▲0.47440.38 ▲41.06108.22 ▼2.36
Media Library /wp-admin/upload.php1,807 ▼35.03 ▲0.02168.66 ▲9.29121.67 ▼1.92

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests Passed 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 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 just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: search replace, update database urls, database

slider-revolution-search-replace/slider-revolution-search-replace.php Passed 13 tests

The entry point to "Slider Revolution Search Replace" version 1.0 is a PHP file that has certain tags in its header comment area
67 characters long description:
Replace url of old domain to new domain for revolution slider only.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin159 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP23222159

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity19.00
▷ Minimum class complexity19.00
▷ Maximum class complexity19.00
Average method complexity3.57
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods114.29%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
No PNG files were detected