84% tolstoy-video

Code Review | Interactive video, Quiz, Product recommendations, Video chat, Video maker

WordPress plugin Interactive video, Quiz, Product recommendations, Video chat, Video maker scored84%from 54 tests.

About plugin

  • Plugin page: tolstoy-video
  • Plugin version: 1.0.10
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.1
  • WordPress version: 6.3.1
  • First release: Jun 9, 2022
  • Latest release: Jan 20, 2023
  • Number of updates: 54
  • Update frequency: every 4.2 days
  • Top authors: tolstoyteam (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /1,739 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.00MB] [CPU: ▼9.13ms] Passed 4 tests

This is a short check of server-side resources used by Interactive video, Quiz, Product recommendations, Video chat, Video maker
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.44 ▼0.0723.05 ▼27.20
Dashboard /wp-admin3.36 ▲0.0251.48 ▼2.77
Posts /wp-admin/edit.php3.48 ▲0.0851.21 ▲3.09
Add New Post /wp-admin/post-new.php5.95 ▲0.0284.48 ▼9.63
Media Library /wp-admin/upload.php3.29 ▲0.0239.38 ▲4.00
Tolstoy /wp-admin/options-general.php?page=tolstoy-plugin3.2533.26

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Interactive video, Quiz, Product recommendations, Video chat, Video maker
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲3514.23 ▼0.001.96 ▼0.6339.74 ▼5.63
Dashboard /wp-admin2,199 ▲195.65 ▼0.0086.52 ▼3.8739.47 ▼2.27
Posts /wp-admin/edit.php2,101 ▲12.00 ▼0.0239.79 ▲4.1838.31 ▲1.23
Add New Post /wp-admin/post-new.php1,531 ▲323.34 ▲0.31698.89 ▲75.0053.69 ▼1.31
Media Library /wp-admin/upload.php1,404 ▲44.19 ▼0.03111.40 ▲8.5849.32 ▲4.06
Tolstoy /wp-admin/options-general.php?page=tolstoy-plugin7862.0224.4926.98

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tolstoy-video/tolstoy-video.php:76

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: interactive, videos

tolstoy-video/tolstoy-video.php Passed 13 tests

"Interactive video, Quiz, Product recommendations, Video chat, Video maker" version 1.0.10's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
36 characters long description:
This is Tolstoy's widget integration

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
No dangerous file extensions were detected58 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1121158

PHP code Passed 2 tests

An overview 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.12
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin