84% online-cinema

Code Review | Online Cinema

WordPress plugin Online Cinema scored84%from 54 tests.

About plugin

  • Plugin page: online-cinema
  • Plugin version: 1.2.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-5.1.1
  • WordPress version: 6.3.1
  • First release: Mar 28, 2019
  • Latest release: Apr 3, 2019
  • Number of updates: 25
  • Update frequency: every 0.3 days
  • Top authors: cheater111 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /585 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.56MB] [CPU: ▲5.66ms] Passed 4 tests

Server-side resources used by Online Cinema
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.06 ▲0.5948.84 ▲7.88
Dashboard /wp-admin3.89 ▲0.5952.17 ▲6.71
Posts /wp-admin/edit.php3.95 ▲0.5955.27 ▲7.94
Add New Post /wp-admin/post-new.php6.42 ▲0.53103.96 ▲16.71
Media Library /wp-admin/upload.php3.76 ▲0.5341.38 ▲0.11
Actors /wp-admin/edit-tags.php?taxonomy=actors&post_type=movies3.7841.78
Crew /wp-admin/edit-tags.php?taxonomy=crew&post_type=tvshows3.7845.17
Companies /wp-admin/edit-tags.php?taxonomy=companies&post_type=tvshows3.7840.27
Created by /wp-admin/edit-tags.php?taxonomy=creators&post_type=tvshows3.7835.67
Actors /wp-admin/edit-tags.php?taxonomy=actors&post_type=tvshows3.7839.43
Crew /wp-admin/edit-tags.php?taxonomy=crew&post_type=movies3.7844.08
Genres /wp-admin/edit-tags.php?taxonomy=genres&post_type=movies3.7841.82
Add New /wp-admin/post-new.php?post_type=tvshows3.9662.24
Companies /wp-admin/edit-tags.php?taxonomy=companies&post_type=movies3.7844.06
Genres /wp-admin/edit-tags.php?taxonomy=genres&post_type=tvshows3.7839.11

Server storage [IO: ▲0.12MB] [DB: ▲0.71MB] Passed 3 tests

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 17 new files
Database: no new tables, 8 new options
New WordPress options
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_wpoc_related_widget
widget_recent-comments
widget_theysaidso_widget
db_upgraded
widget_wpoc_taxonomy_widget

Browser metrics Passed 4 tests

Checking browser requirements for Online Cinema
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,045 ▲28413.84 ▼0.5110.24 ▲8.2337.18 ▼2.04
Dashboard /wp-admin2,308 ▲1385.65 ▼0.0291.86 ▼1.3343.15 ▲4.20
Posts /wp-admin/edit.php2,210 ▲1072.01 ▼0.1038.87 ▲4.7736.11 ▼0.07
Add New Post /wp-admin/post-new.php1,628 ▲10023.27 ▲0.41676.97 ▲3.2673.65 ▲26.09
Media Library /wp-admin/upload.php1,510 ▲1074.21 ▲0.0094.31 ▼10.5841.64 ▼0.80
Actors /wp-admin/edit-tags.php?taxonomy=actors&post_type=movies1,5463.2438.6328.42
Crew /wp-admin/edit-tags.php?taxonomy=crew&post_type=tvshows1,5492.9943.8932.68
Companies /wp-admin/edit-tags.php?taxonomy=companies&post_type=tvshows1,5433.0939.4632.84
Created by /wp-admin/edit-tags.php?taxonomy=creators&post_type=tvshows1,5433.0738.2327.68
Actors /wp-admin/edit-tags.php?taxonomy=actors&post_type=tvshows1,5453.2645.1334.64
Crew /wp-admin/edit-tags.php?taxonomy=crew&post_type=movies1,5463.2539.1129.96
Genres /wp-admin/edit-tags.php?taxonomy=genres&post_type=movies1,5223.1441.6629.63
Add New /wp-admin/post-new.php?post_type=tvshows2,8008.10181.0373.39
Companies /wp-admin/edit-tags.php?taxonomy=companies&post_type=movies1,5463.1243.3231.42
Genres /wp-admin/edit-tags.php?taxonomy=genres&post_type=tvshows1,5193.3041.6031.79

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 8 options
    • widget_wpoc_taxonomy_widget
    • widget_recent-posts
    • widget_wpoc_related_widget
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • 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
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 8× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/online-cinema/classes/taxonomy.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/online-cinema/classes/render.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/online-cinema/classes/shortcodes.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/online-cinema/classes/widgets/related.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/online-cinema/online-cinema.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/online-cinema/classes/plugin-settings.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/online-cinema/classes/widgets/taxonomy.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/online-cinema/classes/types.php:6

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 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
1 plugin tags: wordpress cinema

online-cinema/online-cinema.php 92% from 13 tests

The main PHP file in "Online Cinema" ver. 1.2.1 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected2,174 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP1011831,900
JavaScript24344196
CSS220078

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity23.67
▷ Minimum class complexity5.00
▷ Maximum class complexity64.00
Average method complexity3.19
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods93
▷ Static methods00.00%
▷ Public methods93100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG images were found in this plugin