84% rsv-360-view

Code Review | RSV 360 View

WordPress plugin RSV 360 View scored84%from 54 tests.

About plugin

  • Plugin page: rsv-360-view
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.3.1
  • WordPress version: 6.3.1
  • First release: Jan 29, 2016
  • Latest release: Dec 15, 2019
  • Number of updates: 12
  • Update frequency: every 118.3 days
  • Top authors: Rapid Sort (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

90+ active /3,085 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼6.61ms] Passed 4 tests

Analyzing server-side resources used by RSV 360 View
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.23 ▼0.99
Dashboard /wp-admin3.34 ▲0.0350.94 ▼4.04
Posts /wp-admin/edit.php3.39 ▲0.0354.53 ▲0.15
Add New Post /wp-admin/post-new.php5.92 ▲0.0384.92 ▼18.34
Media Library /wp-admin/upload.php3.26 ▲0.0333.71 ▼3.05
RSV 360 View /wp-admin/options-general.php?page=rsv-360-view3.2333.53

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for RSV 360 View
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲3714.75 ▲0.073.89 ▲1.8343.20 ▼0.12
Dashboard /wp-admin2,210 ▲285.04 ▼0.85106.15 ▼1.6840.47 ▼5.15
Posts /wp-admin/edit.php2,093 ▲42.03 ▲0.0442.94 ▲2.1936.69 ▼0.31
Add New Post /wp-admin/post-new.php1,542 ▲2323.59 ▲0.48681.56 ▼19.6067.42 ▼3.95
Media Library /wp-admin/upload.php1,389 ▲14.20 ▼0.04100.51 ▲0.1745.39 ▲4.52
RSV 360 View /wp-admin/options-general.php?page=rsv-360-view1,6672.1525.9031.62

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/rsv-360-view/rsv-360view.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Tags: Too many tags (23 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

rsv-360-view/rsv-360view.php 92% from 13 tests

The entry point to "RSV 360 View" version 1.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("rsv-360-view.php" instead of "rsv-360view.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
Success! There were no dangerous files found in this plugin466 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP197424
JavaScript221642

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.45
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin