84% revlifter

Code Review | RevLifter

WordPress plugin RevLifter scored84%from 54 tests.

About plugin

  • Plugin page: revlifter
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.3
  • WordPress version: 6.3.1
  • First release: Oct 4, 2023
  • Latest release: Oct 4, 2023
  • Number of updates: 8
  • Update frequency: N/A
  • Top authors: revlifter (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /24 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

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

Analyzing server-side resources used by RevLifter
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1740.10 ▲4.05
Dashboard /wp-admin3.47 ▲0.1646.01 ▼5.58
Posts /wp-admin/edit.php3.58 ▲0.2246.38 ▲2.74
Add New Post /wp-admin/post-new.php6.07 ▲0.1892.09 ▲3.76
Media Library /wp-admin/upload.php3.39 ▲0.1635.20 ▼2.57
RevLifter /wp-admin/options-general.php?page=revlifter-settings3.3632.03

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for RevLifter
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,883 ▲12213.53 ▼0.838.61 ▲6.9940.32 ▼2.50
Dashboard /wp-admin2,206 ▲265.62 ▲0.0086.37 ▼2.5238.40 ▼3.89
Posts /wp-admin/edit.php2,105 ▲82.01 ▲0.0535.10 ▼2.2634.24 ▼0.82
Add New Post /wp-admin/post-new.php1,542 ▼1618.55 ▼5.62645.59 ▲15.1277.66 ▲33.98
Media Library /wp-admin/upload.php1,408 ▲144.27 ▲0.0399.14 ▼7.5542.91 ▼5.88
RevLifter /wp-admin/options-general.php?page=revlifter-settings8042.0024.7226.57

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

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
The following issues need your attention
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/revlifter/public/partials/revlifter-public-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: retail, conversions, optimization, offers, ecommerce

revlifter/revlifter.php Passed 13 tests

The primary PHP file in "RevLifter" version 1.0.0 is used by WordPress to initiate all plugin functionality
62 characters long description:
This plugin is used to enhanced commerce activity by RevLifter

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
Everything looks great! No dangerous files found in this plugin922 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP13234613821
JavaScript21832101
CSS2080

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity15.43
▷ Minimum class complexity1.00
▷ Maximum class complexity71.00
Average method complexity3.40
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods42
▷ Static methods24.76%
▷ Public methods3685.71%
▷ Protected methods00.00%
▷ Private methods614.29%
Functions6
▷ Named functions466.67%
▷ Anonymous functions233.33%
Constants1
▷ Global constants1100.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