83% hello-top-100-movie-quotes

Code Review | Hello Top 100 Movie Quotes

WordPress plugin Hello Top 100 Movie Quotes scored 83% from 54 tests.

About plugin

  • Plugin page: hello-top-100-mov...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.2.2
  • WordPress version: 6.3.1
  • First release: Oct 24, 2013
  • Latest release: Aug 27, 2019
  • Number of updates: 14
  • Update frequency: every 152.4 days
  • Top authors: lanche86 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 1,799 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: ▲0.31ms] Passed 4 tests

Server-side resources used by Hello Top 100 Movie Quotes
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.62 ▼0.62
Dashboard /wp-admin3.31 ▲0.0056.67 ▲1.93
Posts /wp-admin/edit.php3.36 ▲0.0052.39 ▼4.10
Add New Post /wp-admin/post-new.php5.89 ▲0.00127.02 ▲30.67
Media Library /wp-admin/upload.php3.23 ▲0.0040.28 ▲4.01

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Hello Top 100 Movie Quotes
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲4213.22 ▼0.004.61 ▲2.9442.26 ▼7.12
Dashboard /wp-admin2,212 ▲65.86 ▲0.01100.31 ▼7.8243.17 ▲1.92
Posts /wp-admin/edit.php2,091 ▲22.06 ▲0.0036.49 ▼3.6934.74 ▼1.23
Add New Post /wp-admin/post-new.php1,590 ▲5722.66 ▼0.69724.76 ▼19.5153.94 ▼6.52
Media Library /wp-admin/upload.php1,391 ▲94.30 ▲0.0396.31 ▼5.5041.60 ▼1.89

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

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

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
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hello-top-100-movie-quotes/hello_top100_movie_quotes.php:131

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Donate link: Please fix this invalid url: ""
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === hello-top-100-movie-quotes === )
You can look at the official readme.txt

hello-top-100-movie-quotes/hello_top100_movie_quotes.php 85% from 13 tests

"Hello Top 100 Movie Quotes" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("hello-top-100-movie-quotes.php" instead of "hello_top100_movie_quotes.php")
  • Description: The description should be shorter than 140 characters (currently 290 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin127 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11220127

PHP code Passed 2 tests

A short review of 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.11
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
No PNG files were detected