84% hello-hollywood

Code Review | Hello Hollywood

WordPress plugin Hello Hollywood scored84%from 54 tests.

About plugin

  • Plugin page: hello-hollywood
  • Plugin version: 3.3
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-6.1.1
  • WordPress version: 6.3.1
  • First release: Jan 14, 2010
  • Latest release: Feb 23, 2023
  • Number of updates: 37
  • Update frequency: every 137.9 days
  • Top authors: doc4 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,292 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▼0.19MB] [CPU: ▼20.29ms] Passed 4 tests

This is a short check of server-side resources used by Hello Hollywood
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0155.95 ▲15.42
Dashboard /wp-admin3.12 ▼0.1833.13 ▼25.28
Posts /wp-admin/edit.php3.25 ▼0.1036.15 ▼17.88
Add New Post /wp-admin/post-new.php5.45 ▼0.4473.64 ▼24.46
Media Library /wp-admin/upload.php3.19 ▼0.0427.16 ▼13.54

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Hello Hollywood
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,799 ▲3814.24 ▼0.342.22 ▲0.5543.30 ▲3.30
Dashboard /wp-admin2,205 ▲285.55 ▼0.0283.38 ▼13.0839.74 ▼0.11
Posts /wp-admin/edit.php2,110 ▲102.00 ▼0.0137.08 ▲0.9033.50 ▼2.75
Add New Post /wp-admin/post-new.php1,536 ▲823.01 ▼0.15706.37 ▲20.3056.58 ▲4.35
Media Library /wp-admin/upload.php1,413 ▲134.23 ▲0.0098.26 ▼22.0547.12 ▼5.98

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget

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
Even though no errors were found, this is by no means 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 take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hello-hollywood/hello-hollywood.php:107

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: quotes, fame, classic, theater, cinema...

hello-hollywood/hello-hollywood.php Passed 13 tests

The main PHP file in "Hello Hollywood" ver. 3.3 adds more information about the plugin and also serves as the entry point for this plugin
34 characters long description:
Adds movie quotes to the dashboard

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin92 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1183292

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.09
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin