83% tutorshop

Code Review | LiveComm Tutorshop

WordPress plugin LiveComm Tutorshop scored83%from 54 tests.

About plugin

  • Plugin page: tutorshop
  • Plugin version: 0.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-6.0
  • WordPress version: 6.3.1
  • First release: Jun 19, 2022
  • Latest release: Jun 19, 2022
  • Number of updates: 3
  • Update frequency: every 1.0 days
  • Top authors: tutorshop (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,131 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.06MB] [CPU: ▼3.47ms] Passed 4 tests

Analyzing server-side resources used by LiveComm Tutorshop
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0435.10 ▼9.44
Dashboard /wp-admin3.38 ▲0.0743.00 ▼7.58
Posts /wp-admin/edit.php3.49 ▲0.1345.92 ▲4.05
Add New Post /wp-admin/post-new.php5.96 ▲0.0793.39 ▼0.11
Media Library /wp-admin/upload.php3.30 ▲0.0735.73 ▲3.26

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

LiveComm Tutorshop: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲7914.74 ▲0.151.78 ▼0.0839.47 ▼0.09
Dashboard /wp-admin2,220 ▲295.86 ▲0.98107.93 ▲5.7941.45 ▼0.65
Posts /wp-admin/edit.php2,103 ▲142.02 ▲0.0240.16 ▲5.5335.93 ▲1.34
Add New Post /wp-admin/post-new.php1,548 ▲3423.25 ▲5.70630.00 ▼75.5752.97 ▼14.97
Media Library /wp-admin/upload.php1,405 ▲174.19 ▲0.0596.53 ▼6.0744.03 ▼0.73

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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 | 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 fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/tutorshop/tutorshop.php:109

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 90% 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
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
You can take inspiration from this readme.txt

tutorshop/tutorshop.php 85% from 13 tests

The main PHP file in "LiveComm Tutorshop" ver. 0.0.1 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Domain Path: The domain path points to an invalid folder, "/languages/" does not exist
  • Requires at least: Required version must be the same as the one declared in readme.txt ("4.7" instead of "5.7")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin589 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP514281487
JavaScript190102

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity9.75
▷ Minimum class complexity5.00
▷ Maximum class complexity15.00
Average method complexity2.40
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods26
▷ Static methods00.00%
▷ Public methods26100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin