73% resprovis

Code Review | ResProVis

WordPress plugin ResProVis scored 73% from 54 tests.

About plugin

  • Plugin page: resprovis
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-5.9
  • WordPress version: 6.3.1
  • First release: Mar 5, 2022
  • Latest release: Mar 24, 2022
  • Number of updates: 3
  • Update frequency: every 7.0 days
  • Top authors: atsewa (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 231 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

Analyzing server-side resources used by ResProVis
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0345.95 ▼2.22
Dashboard /wp-admin3.34 ▲0.0351.81 ▼1.56
Posts /wp-admin/edit.php3.39 ▲0.0354.16 ▲4.44
Add New Post /wp-admin/post-new.php5.92 ▲0.03101.04 ▼0.50
Media Library /wp-admin/upload.php3.26 ▲0.0340.04 ▲0.46

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: 2 new tables, 7 new options
New tables
wp_asp_weekdays_alloc
wp_asp_weekdays
New WordPress options
theysaidso_admin_options
can_compress_scripts
jal_db_version
db_upgraded
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

ResProVis: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▼2513.16 ▼1.291.52 ▼0.5841.61 ▼1.95
Dashboard /wp-admin2,206 ▲35.88 ▼0.03117.24 ▲12.5338.70 ▼4.89
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0244.22 ▲3.3242.91 ▲7.41
Add New Post /wp-admin/post-new.php1,519 ▼1423.52 ▲0.05625.83 ▼9.1041.91 ▼27.31
Media Library /wp-admin/upload.php1,382 ▼34.27 ▼0.0199.33 ▼20.6144.37 ▼2.23

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure failed, leaving 2 tables in the database
    • wp_asp_weekdays_alloc
    • wp_asp_weekdays
  • The uninstall procedure has failed, leaving 7 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • jal_db_version

Smoke tests 75% from 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 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
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/resprovis/resprovis_shoppage_productfiltration.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/resprovis/resprovis_weekdays_allocation.php:42
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/resprovis/resprovis_weekdays_allocation.php:42

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: week slots, woocommerce, custom product slot allocations, hide product visibility, resprovis...

resprovis/resprovis.php 77% from 13 tests

This is the main PHP file of "ResProVis" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 174 characters long)
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist
  • Requires at least: The required version number did not match the one declared in readme.txt ("5.6" instead of "5.3")

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
There were no executable files found in this plugin218 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP73243218

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected