10% simple-indeed-jobroll-widget

Code Review | Simple Indeed Jobroll Widget

WordPress plugin Simple Indeed Jobroll Widget scored 10% from 54 tests.

About plugin

  • Plugin page: simple-indeed-job...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.0
  • WordPress version: 6.3.1
  • First release: Aug 21, 2014
  • Latest release: Sep 4, 2014
  • Number of updates: 8
  • Update frequency: every 1.9 days
  • Top authors: rezaurc (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active / 1,787 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/simple-indeed-jobroll-widget/simple-indeed-widget.php+138
    Function create_function() is deprecated

Server metrics [RAM: ▼1.92MB] [CPU: ▼53.25ms] Passed 4 tests

Analyzing server-side resources used by Simple Indeed Jobroll Widget
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.06 ▼1.404.25 ▼37.42
Dashboard /wp-admin2.08 ▼1.225.11 ▼43.40
Posts /wp-admin/edit.php2.08 ▼1.276.33 ▼42.14
Add New Post /wp-admin/post-new.php2.08 ▼3.805.58 ▼90.02
Media Library /wp-admin/upload.php2.08 ▼1.155.35 ▼31.79

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
widget_simple_indeed_jobrol_widget
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Simple Indeed Jobroll Widget
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.24 ▼1.201.59 ▼0.1040.47 ▼7.56
Dashboard /wp-admin2,209 ▲214.84 ▼0.07108.06 ▲1.7542.73 ▼4.08
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0240.15 ▲1.1435.58 ▼5.82
Add New Post /wp-admin/post-new.php1,544 ▲3022.74 ▲5.29644.56 ▼50.9353.05 ▼18.39
Media Library /wp-admin/upload.php1,385 ▼04.23 ▲0.07102.01 ▲3.4943.47 ▼2.68

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/simple-indeed-jobroll-widget/simple-indeed-widget.php+138
    Function create_function() is deprecated
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_simple_indeed_jobrol_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 no errors were found, this is by no means 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
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/simple-indeed-jobroll-widget/simple-indeed-widget.php:31

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 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
5 plugin tags: job search, indeed, indeed jobs, widget, jobroll

simple-indeed-jobroll-widget/simple-indeed-widget.php 92% from 13 tests

This is the main PHP file of "Simple Indeed Jobroll Widget" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("simple-indeed-jobroll-widget.php" instead of "simple-indeed-widget.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected86 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1173586

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png7.51KB3.44KB▼ 54.15%
screenshot-2.png27.65KB10.06KB▼ 63.63%