84% hello-programmer

Code Review | Hello Programmer

WordPress plugin Hello Programmer scored84%from 54 tests.

About plugin

  • Plugin page: hello-programmer
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.8.1
  • WordPress version: 6.3.1
  • First release: Feb 24, 2021
  • Latest release: Oct 5, 2021
  • Number of updates: 4
  • Update frequency: every 55.7 days
  • Top authors: sh.shouvo (75%)sabbirshouvo (50%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /617 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼2.86ms] Passed 4 tests

This is a short check of server-side resources used by Hello Programmer
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.34 ▲0.22
Dashboard /wp-admin3.32 ▲0.0245.60 ▼1.84
Posts /wp-admin/edit.php3.37 ▲0.0247.47 ▲2.42
Add New Post /wp-admin/post-new.php5.90 ▲0.0282.09 ▼8.13
Media Library /wp-admin/upload.php3.25 ▲0.0233.23 ▼1.70

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Hello Programmer
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲6313.24 ▼1.401.73 ▲0.0142.84 ▼7.17
Dashboard /wp-admin2,212 ▲215.84 ▲0.7698.04 ▼14.8139.93 ▼6.52
Posts /wp-admin/edit.php2,097 ▲82.06 ▲0.0539.19 ▲2.1637.55 ▲0.81
Add New Post /wp-admin/post-new.php1,528 ▼323.22 ▲0.11626.90 ▼45.4359.49 ▼0.53
Media Library /wp-admin/upload.php1,394 ▲64.24 ▲0.0196.93 ▼0.2741.35 ▼0.03

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 detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • 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
Everything seems fine, however this is by no means 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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hello-programmer/hello-programmer.php:132

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: wisdom, random quote, programming quote, programmer quote, programmer

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

"Hello Programmer" version 1.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
97 characters long description:
This is not just a plugin. It will add wisedom to your dashborad with randorm Programming Quotes.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin137 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1820137

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
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

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