78% revisit-xperience-lite

Code Review | Revisit Xperience LITE

WordPress plugin Revisit Xperience LITE scored78%from 54 tests.

About plugin

  • Plugin page: revisit-xperience...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.9.1
  • WordPress version: 6.3.1
  • First release: Jun 12, 2014
  • Latest release: Jun 15, 2014
  • Number of updates: 29
  • Update frequency: every 0.1 days
  • Top authors: Nino2013 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /640 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.19MB] [CPU: ▼8.80ms] Passed 4 tests

Server-side resources used by Revisit Xperience LITE
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.83 ▼0.6217.75 ▼23.41
Dashboard /wp-admin3.32 ▲0.0250.55 ▲2.79
Posts /wp-admin/edit.php3.19 ▼0.1734.61 ▼10.74
Add New Post /wp-admin/post-new.php5.90 ▲0.0285.73 ▼3.84
Media Library /wp-admin/upload.php3.25 ▲0.0236.86 ▲4.26
Revisit Xperience Lite /wp-admin/options-general.php?page=emiSlider3.2831.95

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 21 new files
Database: 1 new table, 7 new options
New tables
wp_emi_slider
New WordPress options
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
emiSlider
db_upgraded
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Revisit Xperience LITE
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,958 ▲22313.67 ▼0.717.95 ▲6.1653.67 ▲8.72
Dashboard /wp-admin2,210 ▲195.85 ▲0.9694.95 ▼20.4237.25 ▼8.87
Posts /wp-admin/edit.php2,093 ▲42.06 ▼0.1234.78 ▼0.1532.21 ▼3.10
Add New Post /wp-admin/post-new.php1,550 ▲3118.20 ▼4.85595.39 ▼80.2069.87 ▲10.89
Media Library /wp-admin/upload.php1,392 ▲14.22 ▲0.0696.19 ▼5.1739.87 ▼4.00
Revisit Xperience Lite /wp-admin/options-general.php?page=emiSlider1,2576.09142.8051.51

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
Please fix the following items
  • 4× 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/revisit-xperience-lite/RevisitXperience.php:13
    • > PHP Fatal error
      Uncaught Error: Call to a member function query() on null in wp-content/plugins/revisit-xperience-lite/setup/activation.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'EmiSlider' not found in wp-content/plugins/revisit-xperience-lite/templates/adminOptions.php:3
    • > PHP Fatal error
      Uncaught Error: Call to a member function query() on null in wp-content/plugins/revisit-xperience-lite/setup/uninstall.php:4

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
    • > GET request to /wp-admin/options-general.php?page=emiSlider
    • > Security (warning) in unknown
    security - Error with Permissions-Policy header: Unrecognized feature: 'ambient-light-sensor'.
    • > GET request to /wp-admin/options-general.php?page=emiSlider
    • > Security (warning) in unknown
    security - Error with Permissions-Policy header: Unrecognized feature: 'bluetooth'.

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Contributors: The plugin contributors field is not present
You can take inspiration from this readme.txt

revisit-xperience-lite/RevisitXperience.php 92% from 13 tests

The main PHP file in "Revisit Xperience LITE" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("revisit-xperience-lite.php" instead of "RevisitXperience.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin1,326 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP101603861,180
CSS19078
JavaScript22449
HTML13019

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for 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.36
Average class complexity23.71
▷ Minimum class complexity1.00
▷ Maximum class complexity113.00
Average method complexity3.06
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods77
▷ Static methods2937.66%
▷ Public methods5166.23%
▷ Protected methods2633.77%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants00.00%
▷ Class constants10100.00%
▷ Public constants10100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.27MB with 0.19MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
resources/images/logo-main.png157.60KB40.41KB▼ 74.36%
resources/images/upgrade.png17.04KB5.15KB▼ 69.80%
resources/images/logo-small.png35.50KB8.88KB▼ 74.97%
resources/images/box.png63.72KB20.72KB▼ 67.49%