84% procure-eminence-theater

Code Review | Procure Eminence Theater

WordPress plugin Procure Eminence Theater scored84%from 54 tests.

About plugin

  • Plugin page: procure-eminence-...
  • Plugin version: 2.5.2013
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4.2-3.5.1
  • WordPress version: 6.3.1
  • First release: Dec 7, 2012
  • Latest release: Feb 5, 2013
  • Number of updates: 33
  • Update frequency: every 1.8 days
  • Top authors: ProcureEminence (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /987 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
This plugin's installer ran successfully

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

An overview of server-side resources used by Procure Eminence Theater
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0242.24 ▼1.54
Dashboard /wp-admin3.32 ▼0.0348.63 ▼15.28
Posts /wp-admin/edit.php3.37 ▲0.0153.76 ▼3.41
Add New Post /wp-admin/post-new.php5.90 ▲0.0197.54 ▼4.82
Media Library /wp-admin/upload.php3.24 ▲0.0138.36 ▲0.03
Procure Eminence Theater /wp-admin/options-general.php?page=ProcureEminenceTheaterSettingsTitle3.2135.23

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 15 new options
New WordPress options
db_upgraded
widget_recent-posts
YouTubeTheaterChannel
YouTubeTheaterPrivacyMode
YouTubeTheaterVideoLinksArray
theysaidso_admin_options
YouTubeTheaterVideoTitlesArray
can_compress_scripts
widget_recent-comments
YouTubeTheaterVideoAutoPlay
...

Browser metrics Passed 4 tests

Checking browser requirements for Procure Eminence Theater
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,836 ▲9014.22 ▲0.111.74 ▲0.0144.96 ▲0.67
Dashboard /wp-admin2,196 ▲195.55 ▼0.0293.44 ▼2.0243.07 ▼0.04
Posts /wp-admin/edit.php2,107 ▲42.03 ▲0.0536.13 ▼4.5236.91 ▲0.61
Add New Post /wp-admin/post-new.php1,531 ▲523.22 ▲0.13604.89 ▼77.3966.47 ▲10.11
Media Library /wp-admin/upload.php1,404 ▲44.23 ▲0.1394.87 ▼24.1543.44 ▼4.94
Procure Eminence Theater /wp-admin/options-general.php?page=ProcureEminenceTheaterSettingsTitle1,1282.0222.6332.12

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 15 options in the database
    • YouTubeTheaterSuggVid
    • YouTubeTheaterVideoTitlesArray
    • YouTubeTheaterHttps
    • YouTubeTheaterChannel
    • can_compress_scripts
    • YouTubeTheaterVideoLinksArray
    • YouTubeTheaterPrivacyMode
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • YouTubeTheaterAnimation
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/procure-eminence-theater/ProcureEminenceTheater.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/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
5 plugin tags: video launcher, theater, youtube embed, youtube video, procure eminence theater

procure-eminence-theater/ProcureEminenceTheater.php 92% from 13 tests

The main PHP file in "Procure Eminence Theater" ver. 2.5.2013 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("procure-eminence-theater.php" instead of "ProcureEminenceTheater.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin578 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14281578

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.16
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin