83% jobswidget

Code Review | Jobs Widget

WordPress plugin Jobs Widget scored83%from 54 tests.

About plugin

  • Plugin page: jobswidget
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.7
  • WordPress version: 6.3.1
  • First release: Feb 5, 2019
  • Latest release: May 13, 2019
  • Number of updates: 14
  • Update frequency: every 7.3 days
  • Top authors: jobswidget (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /615 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.00MB] [CPU: ▼8.65ms] Passed 4 tests

This is a short check of server-side resources used by Jobs Widget
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.09 ▼9.54
Dashboard /wp-admin3.31 ▼0.0349.85 ▼16.67
Posts /wp-admin/edit.php3.36 ▲0.0151.48 ▲0.03
Add New Post /wp-admin/post-new.php5.89 ▲0.0191.55 ▼8.43
Media Library /wp-admin/upload.php3.23 ▲0.0138.14 ▲1.52
Jobs Widget /wp-admin/options-general.php?page=jobs-widget/options.php3.0423.75

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Jobs Widget
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲8413.61 ▼0.771.88 ▲0.1240.68 ▼3.55
Dashboard /wp-admin2,225 ▲195.81 ▲0.71100.06 ▼3.9636.92 ▼4.82
Posts /wp-admin/edit.php2,104 ▲222.00 ▲0.0037.76 ▼2.1731.26 ▼10.18
Add New Post /wp-admin/post-new.php1,548 ▲16523.40 ▲6.79602.66 ▲29.6640.68 ▼26.96
Media Library /wp-admin/upload.php1,404 ▲44.26 ▲0.07103.11 ▼10.1046.09 ▼0.85
Jobs Widget /wp-admin/options-general.php?page=jobs-widget/options.php280.440.194.10

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
    • > GET request to /wp-admin/options-general.php?page=jobs-widget/options.php
    • > Network (severe)
    wp-admin/options-general.php?page=jobs-widget/options.php - Failed to load resource: the server responded with a status of 500 (Internal Server Error)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Screenshots: A description for screenshot #4 is required in jobswidget/assets to your readme.txt
  • Donate link: Invalid url: "jobswidget.me"
Please take inspiration from this readme.txt

jobswidget/plugin.php 92% from 13 tests

The main PHP script in "Jobs Widget" version 1.0 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("jobswidget.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected92 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP3173492
JavaScript1100

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.62
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%
Functions2
▷ Named functions2100.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
2 PNG files occupy 0.09MB with 0.05MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/images/screenshot-2.png54.42KB21.26KB▼ 60.94%
includes/images/screenshot-3.png34.26KB13.78KB▼ 59.77%