89% hire-me-status-widget

Code Review | Hire Me Status Widget

WordPress plugin Hire Me Status Widget scored89%from 54 tests.

About plugin

  • Plugin page: hire-me-status-wi...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8+
  • WordPress version: 6.3.1
  • First release: Jun 3, 2014
  • Latest release: Jun 10, 2014
  • Number of updates: 6
  • Update frequency: every 158.5 days
  • Top authors: sebd86 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /2,266 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.05MB] [CPU: ▼6.49ms] Passed 4 tests

Analyzing server-side resources used by Hire Me Status Widget
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0639.01 ▲1.91
Dashboard /wp-admin3.37 ▲0.0249.39 ▼11.64
Posts /wp-admin/edit.php3.48 ▲0.1348.96 ▲2.47
Add New Post /wp-admin/post-new.php5.95 ▲0.0683.10 ▼16.08
Media Library /wp-admin/upload.php3.29 ▲0.0637.44 ▼0.13

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_hire_me_status_widget
db_upgraded
can_compress_scripts
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Hire Me Status Widget
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.72 ▲0.091.82 ▲0.1643.81 ▲4.11
Dashboard /wp-admin2,195 ▲215.54 ▼0.0285.38 ▼3.1037.11 ▼4.69
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0434.01 ▼7.6735.41 ▼0.90
Add New Post /wp-admin/post-new.php1,526 ▼023.21 ▲0.16687.89 ▲33.3855.24 ▲6.12
Media Library /wp-admin/upload.php1,400 ▼04.24 ▲0.0993.95 ▼17.0843.20 ▼1.98

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_theysaidso_widget
    • widget_hire_me_status_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: hire, status, widgets, widget, availability...

hire-me-status-widget/hire-me-status-widget.php 85% from 13 tests

The primary PHP file in "Hire Me Status Widget" version 1.0.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Domain Path: Prefix the domain path with a forward slash character ("/languages")
  • Domain Path: Use only dashes and lowercase characters for the domain path ("languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected235 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP275191235

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity13.00
▷ Minimum class complexity5.00
▷ Maximum class complexity21.00
Average method complexity2.41
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
Methods17
▷ Static methods211.76%
▷ Public methods1588.24%
▷ Protected methods00.00%
▷ Private methods211.76%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants571.43%
▷ Class constants228.57%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin