84% apoyl-video

Code Review | [凹凸曼]播放视频

WordPress plugin [凹凸曼]播放视频 scored84%from 54 tests.

About plugin

  • Plugin page: apoyl-video
  • Plugin version: 1.6.0
  • PHP compatiblity: 5.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3.1-6.4
  • WordPress version: 6.3.1
  • First release: Nov 23, 2022
  • Latest release: Nov 23, 2023
  • Number of updates: 9
  • Update frequency: every 40.7 days
  • Top authors: apoyl (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,219 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼6.47ms] Passed 4 tests

An overview of server-side resources used by [凹凸曼]播放视频
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0538.19 ▼1.64
Dashboard /wp-admin3.35 ▲0.0444.19 ▼4.82
Posts /wp-admin/edit.php3.46 ▲0.1050.03 ▲1.17
Add New Post /wp-admin/post-new.php5.93 ▲0.0481.38 ▼17.85
Media Library /wp-admin/upload.php3.27 ▲0.0433.45 ▼1.58
settings /wp-admin/options-general.php?page=apoyl-video-settings3.2832.56

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 22 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
apoyl-video-settings
widget_recent-posts
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for [凹凸曼]播放视频
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲5714.31 ▼0.411.85 ▲0.1941.61 ▼3.33
Dashboard /wp-admin2,202 ▲255.60 ▼0.0294.21 ▼2.9943.16 ▼3.10
Posts /wp-admin/edit.php2,101 ▼21.96 ▼0.0640.82 ▼0.4235.28 ▲1.41
Add New Post /wp-admin/post-new.php1,529 ▲323.14 ▼0.12621.18 ▼42.8059.36 ▲6.18
Media Library /wp-admin/upload.php1,407 ▲74.16 ▼0.1297.41 ▼5.3444.63 ▲2.93
settings /wp-admin/options-general.php?page=apoyl-video-settings9301.9724.7826.78

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Notice
      Undefined variable: arr in wp-content/plugins/apoyl-video/public/partials/public-display.php on line 11
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/apoyl-video/public/partials/public-display.php on line 11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/apoyl-video/admin/partials/admin-display.php:25

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)
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: video, bilibili

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

"[凹凸曼]播放视频" version 1.6.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
16 characters long description:
apoyl-video-desc

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
Success! There were no dangerous files found in this plugin344 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP1395143341
JavaScript1203

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity1.75
▷ Minimum class complexity1.00
▷ Maximum class complexity4.00
Average method complexity1.22
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods27
▷ Static methods311.11%
▷ Public methods2281.48%
▷ Protected methods00.00%
▷ Private methods518.52%
Functions5
▷ Named functions480.00%
▷ Anonymous functions120.00%
Constants4
▷ Global constants4100.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
PNG images were not found in this plugin