10% cinema-catalog

Code Review | Cinema catalog

WordPress plugin Cinema catalog scored10%from 54 tests.

About plugin

  • Plugin page: cinema-catalog
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-5.3
  • WordPress version: 6.3.1
  • First release: Mar 5, 2020
  • Latest release: Mar 5, 2020
  • Number of updates: 9
  • Update frequency: every 0.1 days
  • Top authors: molemime (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /781 total downloads

Benchmarks

Plugin footprint 23% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/cinema-catalog/cinema.php+44
    Undefined index: edit

Server metrics [RAM: ▼1.73MB] [CPU: ▼47.46ms] Passed 4 tests

Analyzing server-side resources used by Cinema catalog
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0342.22 ▼0.28
Dashboard /wp-admin2.22 ▼1.0910.64 ▼42.54
Posts /wp-admin/edit.php2.22 ▼1.148.76 ▼39.88
Add New Post /wp-admin/post-new.php2.22 ▼3.677.93 ▼80.46
Media Library /wp-admin/upload.php2.22 ▼1.018.80 ▼26.95

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 5 new files
Database: 1 new table, 8 new options
New tables
wp_cinema
New WordPress options
api_key
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_cinema_widget
db_upgraded
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Cinema catalog
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲5914.37 ▲0.131.78 ▼0.1039.26 ▼4.13
Dashboard /wp-admin2,192 ▲155.55 ▼0.0390.71 ▲1.3736.27 ▼6.93
Posts /wp-admin/edit.php2,109 ▲91.97 ▼0.0139.37 ▲3.7933.35 ▼0.37
Add New Post /wp-admin/post-new.php1,532 ▲323.28 ▲0.19667.65 ▼89.6381.11 ▲19.44
Media Library /wp-admin/upload.php1,400 ▼04.18 ▲0.0199.99 ▼9.7040.61 ▼6.67

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/cinema-catalog/cinema.php+44
    Undefined index: edit
  • Zombie tables detected upon uninstall: 1 table
    • wp_cinema
  • Zombie WordPress options were found after uninstall: 8 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_cinema_widget
    • api_key
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/cinema-catalog/cinema.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Please add descriptions for these screenshots #1, #2 in cinema-catalog/assets to your readme.txt
You can take inspiration from this readme.txt

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

This is the main PHP file of "Cinema catalog" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("cinema-catalog.php" instead of "cinema.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected448 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP410728448

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity26.50
▷ Minimum class complexity15.00
▷ Maximum class complexity38.00
Average method complexity3.83
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods18
▷ Static methods1372.22%
▷ Public methods18100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin