84% molly-theater

Code Review | Molly Theater

WordPress plugin Molly Theater scored84%from 54 tests.

About plugin

  • Plugin page: molly-theater
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Aug 1, 2021
  • Latest release: Aug 1, 2021
  • Number of updates: 5
  • Update frequency: every 0.6 days
  • Top authors: jonathanschmitz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /309 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.01MB] [CPU: ▼8.52ms] Passed 4 tests

An overview of server-side resources used by Molly Theater
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.60 ▼11.18
Dashboard /wp-admin3.32 ▲0.0149.52 ▲2.96
Posts /wp-admin/edit.php3.37 ▲0.0146.39 ▼0.62
Add New Post /wp-admin/post-new.php5.90 ▲0.0184.92 ▼20.62
Media Library /wp-admin/upload.php3.24 ▲0.0133.38 ▼1.64
Molly Theater /wp-admin/tools.php?page=molly-theater3.2030.38

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

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

Browser metrics Passed 4 tests

Molly Theater: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲6313.21 ▼1.241.77 ▲0.0743.01 ▲1.26
Dashboard /wp-admin2,210 ▲255.88 ▲0.95102.21 ▼0.0138.77 ▼3.88
Posts /wp-admin/edit.php2,093 ▲42.02 ▼0.0136.23 ▲0.5735.03 ▲1.77
Add New Post /wp-admin/post-new.php1,545 ▲2618.28 ▼4.94605.60 ▼76.6151.75 ▼11.16
Media Library /wp-admin/upload.php1,395 ▲104.23 ▲0.0295.21 ▼1.2341.46 ▼0.94
Molly Theater /wp-admin/tools.php?page=molly-theater9071.9821.5931.07

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • 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 short smoke test looking for server-side errors
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
Please fix the following items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/molly-theater/molly-plugin-theater.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/molly-theater/include/settings.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
8 plugin tags: molly, youtube, fullscreen, theater, vimeo...

molly-theater/molly-plugin-theater.php 85% from 13 tests

The primary PHP file in "Molly Theater" version 1.0.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("molly-theater.php" instead of "molly-plugin-theater.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 193 characters long)

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
There were no executable files found in this plugin160 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
CSS25069
PHP2101251
JavaScript25840

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There were not PNG files found in your plugin