89% job-listings-from-remoteok-io

Code Review | Job Listings from RemoteOK.io

WordPress plugin Job Listings from RemoteOK.io scored89%from 54 tests.

About plugin

  • Plugin page: job-listings-from...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.2.2
  • WordPress version: 6.3.1
  • First release: Aug 9, 2019
  • Latest release: Aug 9, 2019
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: angusokereafor (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /473 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.69MB] [CPU: ▲454.05ms] 75% from 4 tests

An overview of server-side resources used by Job Listings from RemoteOK.io
The following require your attention
  • Extra CPU: Extra CPU usage should be kept under 200.00ms (currently 454.05ms on /wp-admin/upload.php)
PageMemory (MB)CPU Time (ms)
Home /4.30 ▲0.84372.44 ▲332.28
Dashboard /wp-admin4.12 ▲0.77879.42 ▲811.36
Posts /wp-admin/edit.php4.14 ▲0.78355.75 ▲308.68
Add New Post /wp-admin/post-new.php6.32 ▲0.43971.23 ▲868.51
Media Library /wp-admin/upload.php3.98 ▲0.75399.50 ▲363.88

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
widget_mtc_remoteok_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Job Listings from RemoteOK.io
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,938 ▲17714.73 ▲0.4513.09 ▲11.5043.18 ▼0.32
Dashboard /wp-admin2,205 ▲255.43 ▼0.1894.77 ▼7.5939.21 ▼6.07
Posts /wp-admin/edit.php2,110 ▲102.44 ▲0.4741.38 ▲3.4834.35 ▼2.23
Add New Post /wp-admin/post-new.php1,549 ▲2121.88 ▼1.11659.29 ▼29.5753.29 ▼8.99
Media Library /wp-admin/upload.php1,407 ▲44.82 ▲0.63110.48 ▲2.1440.61 ▼3.70

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
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-posts
    • widget_mtc_remoteok_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
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 just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
8 plugin tags: remoteokio, remote work, job listing, remoteok, remote jobs...

job-listings-from-remoteok-io/rok_wp_plugin.php 92% from 13 tests

The primary PHP file in "Job Listings from RemoteOK.io" version 1.0.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("job-listings-from-remoteok-io.php" instead of "rok_wp_plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin260 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
SVG101100
PHP1182273
JavaScript1252262
CSS17025

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
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 complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin