84% hello-webchuck

Code Review | Hello WEBCHUCK

WordPress plugin Hello WEBCHUCK scored84%from 54 tests.

About plugin

  • Plugin page: hello-webchuck
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9
  • WordPress version: 6.3.1
  • First release: Jul 2, 2018
  • Latest release: Jul 2, 2018
  • Number of updates: 2
  • Update frequency: every 1.5 days
  • Top authors: crebuh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /501 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.01MB] [CPU: ▼5.96ms] Passed 4 tests

An overview of server-side resources used by Hello WEBCHUCK
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0136.37 ▼5.17
Dashboard /wp-admin3.32 ▲0.0243.74 ▼6.82
Posts /wp-admin/edit.php3.37 ▲0.0143.09 ▼2.06
Add New Post /wp-admin/post-new.php5.90 ▲0.0181.58 ▼9.78
Media Library /wp-admin/upload.php3.24 ▲0.0137.18 ▲3.11

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Hello WEBCHUCK: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲6113.31 ▼1.061.62 ▼0.2739.25 ▼7.69
Dashboard /wp-admin2,216 ▲285.82 ▲0.9595.87 ▼18.4479.87 ▲37.52
Posts /wp-admin/edit.php2,095 ▲92.02 ▲0.0534.77 ▲0.2935.66 ▲2.66
Add New Post /wp-admin/post-new.php1,674 ▲16022.63 ▲5.03764.07 ▲84.1248.29 ▼10.14
Media Library /wp-admin/upload.php1,392 ▲44.25 ▲0.0599.68 ▲1.2568.25 ▲23.34

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hello-webchuck/hello-webchuck.php:106

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: These screenshots require images: #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif).), #2 (This is the second screen shot)
You can look at the official readme.txt

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

The principal PHP file in "Hello WEBCHUCK" v. 1.0.0 is loaded by WordPress automatically on each request
133 characters long description:
This is just a simple plugin. When activated you will randomly see a quote from Chuck Norris in the upper right of your admin screen.

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
No dangerous file extensions were detected695 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
Markdown31430589
PHP1817106

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for 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%
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

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin