78% wp-theater

Code Review | WP Theater

WordPress plugin WP Theater scored78%from 54 tests.

About plugin

  • Plugin page: wp-theater
  • Plugin version: 1.2.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.2
  • WordPress version: 6.3.1
  • First release: Sep 13, 2013
  • Latest release: Apr 26, 2015
  • Number of updates: 68
  • Update frequency: every 8.8 days
  • Top authors: kentfarst (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

300+ active /13,260 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
Installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼7.30ms] Passed 4 tests

Server-side resources used by WP Theater
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.2040.18 ▲3.66
Dashboard /wp-admin3.38 ▲0.0347.87 ▼11.99
Posts /wp-admin/edit.php3.49 ▲0.1347.31 ▲1.21
Add New Post /wp-admin/post-new.php5.96 ▲0.0780.04 ▼18.33
Media Library /wp-admin/upload.php3.30 ▲0.0734.25 ▼0.10
WP Theater /wp-admin/options-general.php?page=wp_theater3.2438.83

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 17 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
wp_theater_options
theysaidso_admin_options
db_upgraded
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

WP Theater: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲4114.46 ▲0.221.75 ▲0.1142.29 ▲5.44
Dashboard /wp-admin2,211 ▲315.57 ▼0.1084.03 ▼2.5941.98 ▼0.31
Posts /wp-admin/edit.php2,114 ▲142.01 ▲0.0634.38 ▼1.3136.91 ▲5.79
Add New Post /wp-admin/post-new.php1,547 ▲1917.95 ▼5.23643.68 ▼31.4574.82 ▲20.56
Media Library /wp-admin/upload.php1,413 ▲164.23 ▲0.06110.57 ▲1.8547.63 ▼0.31
WP Theater /wp-admin/options-general.php?page=wp_theater8922.0026.5533.20

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=wp_theater
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=wp_theater
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

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 errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wp-theater/inc/filters.php:17

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 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Tags: Too many tags (29 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Screenshots: Screenshot #1 (Sample screen shot of how a Vimeo group would look. Image shows the title, theater, lower-lights & full window buttons, videos listing with thumb & title and a link to more content.) image missing
You can take inspiration from this readme.txt

wp-theater/wp-theater.php Passed 13 tests

The principal PHP file in "WP Theater" v. 1.2.3 is loaded by WordPress automatically on each request
118 characters long description:
Adds shortcodes that can display embeds, previews, user uploads, playlists, channels and groups from Youtube or Vimeo.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected1,454 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP5290453948
CSS33120318
JavaScript24414174
SVG11014

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.60
Average class complexity59.00
▷ Minimum class complexity1.00
▷ Maximum class complexity202.00
Average method complexity5.94
▷ Minimum method complexity1.00
▷ Maximum method complexity37.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods47
▷ Static methods1327.66%
▷ Public methods4595.74%
▷ Protected methods24.26%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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.16MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png163.64KB129.94KB▼ 20.60%