80% utopia70cart-scheduling

Code Review | J.W.Cart Scheduler

WordPress plugin J.W.Cart Scheduler scored80%from 54 tests.

About plugin

  • Plugin page: utopia70cart-sche...
  • Plugin version: 0.91
  • PHP compatiblity: 5.6.24+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.7-4.9.8
  • WordPress version: 6.3.1
  • First release: Aug 5, 2018
  • Latest release: Aug 5, 2018
  • Number of updates: 2
  • Update frequency: every 1.0 days
  • Top authors: utopiamech (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /828 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▼0.42ms] Passed 4 tests

Server-side resources used by J.W.Cart Scheduler
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0839.52 ▼2.89
Dashboard /wp-admin3.43 ▲0.1246.40 ▼2.13
Posts /wp-admin/edit.php3.48 ▲0.1249.23 ▲3.46
Add New Post /wp-admin/post-new.php6.01 ▲0.1295.30 ▲6.86
Media Library /wp-admin/upload.php3.35 ▲0.1237.98 ▼0.11
More Info /wp-admin/admin.php?page=utopia70b3.3030.18
Edit Locations /wp-admin/admin.php?page=utopia703.3233.44

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 5 new files
Database: 1 new table, 7 new options
New tables
wp_u70site
New WordPress options
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_recent-posts
UTOPIA70_VERSION_KEY
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for J.W.Cart Scheduler
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,839 ▲10413.57 ▼1.041.79 ▲0.0142.63 ▼11.10
Dashboard /wp-admin2,237 ▲495.79 ▼0.2697.88 ▼14.8238.95 ▼8.70
Posts /wp-admin/edit.php2,120 ▲342.02 ▲0.0139.30 ▲5.3834.44 ▼0.47
Add New Post /wp-admin/post-new.php1,540 ▼217.52 ▼0.64651.46 ▲21.9859.74 ▲3.02
Media Library /wp-admin/upload.php1,419 ▲344.23 ▲0.0294.08 ▼0.9741.18 ▼0.80
More Info /wp-admin/admin.php?page=utopia70b8962.0221.4538.33
Edit Locations /wp-admin/admin.php?page=utopia701,4922.0728.0234.38

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure failed, leaving 1 table in the database
    • wp_u70site
  • This plugin does not fully uninstall, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • UTOPIA70_VERSION_KEY
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: jehovahs witnesses, scheduling, literature cart scheduling, public witnessing cart, magazine cart scheduler...

utopia70cart-scheduling/utopia70.php 92% from 13 tests

Analyzing the main PHP file in "J.W.Cart Scheduler" version 0.91
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("utopia70cart-scheduling.php" instead of "utopia70.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin919 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP21569861
CSS113351
JavaScript1007

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.38
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
PNG images were not found in this plugin