90% kinescope

Code Review | Kinescope

WordPress plugin Kinescope scored90%from 54 tests.

About plugin

  • Plugin page: kinescope
  • Plugin version: 0.1.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.0
  • WordPress version: 6.3.1
  • First release: Sep 30, 2022
  • Latest release: Sep 30, 2022
  • Number of updates: 5
  • Update frequency: every 3.0 days
  • Top authors: odminstudios (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /308 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 gracefully, with no errors

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

This is a short check of server-side resources used by Kinescope
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.72 ▲0.25
Dashboard /wp-admin3.32 ▼0.0348.69 ▼8.88
Posts /wp-admin/edit.php3.37 ▲0.0147.01 ▲0.44
Add New Post /wp-admin/post-new.php5.90 ▲0.0181.84 ▼23.42
Media Library /wp-admin/upload.php3.24 ▲0.0133.59 ▼1.46

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Kinescope
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.42 ▲0.031.72 ▲0.0541.85 ▼0.12
Dashboard /wp-admin2,198 ▲175.59 ▼0.1383.97 ▼14.4334.93 ▼6.84
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0539.58 ▲1.0435.08 ▲3.67
Add New Post /wp-admin/post-new.php1,526 ▼923.23 ▲4.93657.66 ▲8.5352.43 ▼19.11
Media Library /wp-admin/upload.php1,394 ▼64.17 ▼0.05112.19 ▲0.9947.30 ▼0.17

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
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
The SRP test was a success

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 on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: blocks, kinescope, video

kinescope/kinescope.php Passed 13 tests

The principal PHP file in "Kinescope" v. 0.1.1 is loaded by WordPress automatically on each request
58 characters long description:
Building better video experiences. Kinescope video player.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected36 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
XML110525
PHP231211

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.67
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 PNG file occupies 0.10MB with 0.05MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-4.png99.33KB52.79KB▼ 46.85%