84% hello-samuel-l-jackson

Code Review | Hello Samuel L. Jackson

WordPress plugin Hello Samuel L. Jackson scored84%from 54 tests.

About plugin

  • Plugin page: hello-samuel-l-ja...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.9
  • WordPress version: 6.3.1
  • First release: Apr 28, 2014
  • Latest release: Apr 28, 2014
  • Number of updates: 6
  • Update frequency: every 86.5 days
  • Top authors: johnregan3 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /2,368 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.22ms] Passed 4 tests

Analyzing server-side resources used by Hello Samuel L. Jackson
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0234.35 ▼8.94
Dashboard /wp-admin3.32 ▲0.0244.74 ▲0.94
Posts /wp-admin/edit.php3.37 ▲0.0148.62 ▲6.95
Add New Post /wp-admin/post-new.php5.90 ▲0.0192.51 ▼2.45
Media Library /wp-admin/upload.php3.24 ▲0.0133.30 ▼2.44

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Hello Samuel L. Jackson
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲7113.35 ▼1.091.65 ▼0.4840.54 ▼8.14
Dashboard /wp-admin2,212 ▲204.84 ▼0.07108.04 ▼3.3643.54 ▲2.12
Posts /wp-admin/edit.php2,094 ▲52.04 ▲0.0440.15 ▲3.2137.36 ▲6.21
Add New Post /wp-admin/post-new.php1,590 ▲7122.49 ▼0.87681.73 ▲9.8245.64 ▼10.03
Media Library /wp-admin/upload.php1,388 ▼34.16 ▼0.09102.23 ▲0.7144.07 ▼1.46

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
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

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 have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hello-samuel-l-jackson/hello-slj.php:111

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 96% 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
4 plugin tags: samuel l jackson, samuel, hello, motherfucker

hello-samuel-l-jackson/hello-slj.php 92% from 13 tests

"Hello Samuel L. Jackson" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("hello-samuel-l-jackson.php" instead of "hello-slj.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin85 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1103685

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.12
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