84% wpjbm-application

Code Review | WPJBM application

WordPress plugin WPJBM application scored84%from 54 tests.

About plugin

  • Plugin page: wpjbm-application
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.7
  • WordPress version: 6.3.1
  • First release: Dec 27, 2016
  • Latest release: Dec 28, 2016
  • Number of updates: 4
  • Update frequency: every 48.7 days
  • Top authors: dadodd (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,773 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by WPJBM application
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0035.70 ▼2.20
Dashboard /wp-admin3.31 ▲0.0146.11 ▲1.17
Posts /wp-admin/edit.php3.36 ▲0.0039.30 ▼6.51
Add New Post /wp-admin/post-new.php5.89 ▲0.0079.21 ▼20.58
Media Library /wp-admin/upload.php3.23 ▲0.0033.34 ▼2.23

Server storage [IO: ▲0.00MB] [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
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for WPJBM application
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.34 ▲0.071.50 ▼0.2741.09 ▲3.87
Dashboard /wp-admin2,198 ▲185.59 ▲0.0285.33 ▼10.6237.95 ▼0.09
Posts /wp-admin/edit.php2,100 ▼02.00 ▲0.0536.55 ▲0.0833.22 ▼0.89
Add New Post /wp-admin/post-new.php1,529 ▼023.12 ▼0.16604.75 ▲8.6746.66 ▼31.29
Media Library /wp-admin/upload.php1,403 ▲64.18 ▼0.04101.82 ▲1.9841.35 ▼0.54

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wpjbm-application/wpjbm-application.php:28

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 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
3 plugin tags: wp job manager, application, job listing

wpjbm-application/wpjbm-application.php Passed 13 tests

The primary PHP file in "WPJBM application" version 1.0.0 is used by WordPress to initiate all plugin functionality
74 characters long description:
This plugin adds shortcode for user application listing for WP Job Manager

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
Everything looks great! No dangerous files found in this plugin15 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP16715

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.09
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin