83% simple-job-listings

Code Review | Simple Job Listings

WordPress plugin Simple Job Listings scored83%from 54 tests.

About plugin

  • Plugin page: simple-job-listings
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.6
  • WordPress version: 6.3.1
  • First release: Sep 20, 2016
  • Latest release: Sep 12, 2016
  • Number of updates: 3
  • Update frequency: every 1.3 days
  • Top authors: awbauer (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,050 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
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by Simple Job Listings
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0637.74 ▼5.46
Dashboard /wp-admin3.36 ▲0.0247.92 ▼10.26
Posts /wp-admin/edit.php3.41 ▲0.0649.08 ▲1.37
Add New Post /wp-admin/post-new.php5.94 ▲0.0580.16 ▼28.22
Media Library /wp-admin/upload.php3.28 ▲0.0534.69 ▼3.88
All Jobs /wp-admin/edit.php?post_type=job3.3333.05
Add New /wp-admin/post-new.php?post_type=job3.4052.27

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Simple Job Listings
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,855 ▲10914.47 ▲0.081.84 ▲0.2339.03 ▼0.67
Dashboard /wp-admin2,230 ▲395.80 ▲0.93112.59 ▲11.1544.95 ▲1.67
Posts /wp-admin/edit.php2,116 ▲242.02 ▲0.0339.94 ▼4.8334.96 ▼1.79
Add New Post /wp-admin/post-new.php1,542 ▲2323.09 ▼0.09607.73 ▼60.6251.51 ▲1.48
Media Library /wp-admin/upload.php1,415 ▲274.26 ▲0.07101.25 ▼12.5143.16 ▼5.01
All Jobs /wp-admin/edit.php?post_type=job1,0802.0136.2729.74
Add New /wp-admin/post-new.php?post_type=job2,1477.56197.1679.76

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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 items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/simple-job-listings/job-listings.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Screenshots: These screenshots require images: #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is taken from), #2 (This is the second screen shot)
Please take inspiration from this readme.txt

simple-job-listings/job-listings.php 85% from 13 tests

The principal PHP file in "Simple Job Listings" v. 1.0 is loaded by WordPress automatically on each request
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("simple-job-listings.php" instead of "job-listings.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

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
Everything looks great! No dangerous files found in this plugin139 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2309139

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods6100.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin