84% job-listings-bookmark

Code Review | Job Listings - Bookmark

WordPress plugin Job Listings - Bookmark scored84%from 54 tests.

About plugin

  • Plugin page: job-listings-book...
  • Plugin version: 0.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.7.5
  • WordPress version: 6.3.1
  • First release: May 29, 2017
  • Latest release: May 29, 2017
  • Number of updates: 3
  • Update frequency: every 1.7 days
  • Top authors: nootheme (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /772 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼0.48ms] Passed 4 tests

This is a short check of server-side resources used by Job Listings - Bookmark
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.16 ▲1.33
Dashboard /wp-admin3.32 ▲0.0144.45 ▼2.07
Posts /wp-admin/edit.php3.37 ▲0.0147.46 ▼1.61
Add New Post /wp-admin/post-new.php5.90 ▲0.0194.39 ▲6.80
Media Library /wp-admin/upload.php3.24 ▲0.0134.57 ▲0.43

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Job Listings - Bookmark
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.20 ▼1.201.87 ▲0.1540.43 ▼4.07
Dashboard /wp-admin2,206 ▲155.90 ▲1.03104.93 ▼6.5342.03 ▲0.32
Posts /wp-admin/edit.php2,089 ▲32.04 ▲0.0439.85 ▼0.5734.04 ▼1.77
Add New Post /wp-admin/post-new.php1,542 ▲918.28 ▼4.66605.45 ▼91.9051.47 ▼13.09
Media Library /wp-admin/upload.php1,388 ▼34.18 ▼0.0895.98 ▼3.4143.07 ▼3.14

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/job-listings-bookmark/includes/functions.php:197

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: employment, job listings, job manager, job board, job management

job-listings-bookmark/job-listings-bookmark.php Passed 13 tests

The main PHP file in "Job Listings - Bookmark" ver. 0.1.0 adds more information about the plugin and also serves as the entry point for this plugin
96 characters long description:
This is a short description of what the plugin does. It's displayed in the WordPress admin area.

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 plugin448 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP712656399
JavaScript12038
CSS12011

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.14
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods114.29%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
There are no PNG files in this plugin