83% jobcards-online-integration

Code Review | Jobcards Online Integration

WordPress plugin Jobcards Online Integration scored83%from 54 tests.

About plugin

  • Plugin page: jobcards-online-i...
  • Plugin version: 4.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.3
  • WordPress version: 6.3.1
  • First release: Jun 22, 2023
  • Latest release: Sep 7, 2023
  • Number of updates: 7
  • Update frequency: every 11.4 days
  • Top authors: jobcardsonline (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /93 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼7.51ms] Passed 4 tests

An overview of server-side resources used by Jobcards Online Integration
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.17 ▼3.76
Dashboard /wp-admin3.34 ▲0.0352.91 ▲3.11
Posts /wp-admin/edit.php3.39 ▲0.0346.21 ▼14.50
Add New Post /wp-admin/post-new.php5.94 ▲0.0582.57 ▼10.61
Media Library /wp-admin/upload.php3.26 ▲0.0334.90 ▼1.16

Server storage [IO: ▲0.23MB] [DB: ▲0.07MB] Passed 3 tests

Filesystem and database footprint
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Jobcards Online Integration: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,847 ▲8614.74 ▲0.232.18 ▲0.5941.24 ▼8.69
Dashboard /wp-admin2,213 ▲365.01 ▼0.66100.33 ▲13.6084.83 ▲43.53
Posts /wp-admin/edit.php2,136 ▲332.29 ▲0.2736.85 ▼2.7032.66 ▼2.65
Add New Post /wp-admin/post-new.php1,556 ▲2823.79 ▲0.98680.19 ▲16.2253.99 ▼6.54
Media Library /wp-admin/upload.php1,433 ▲364.50 ▲0.23100.73 ▲1.2376.80 ▲34.57

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

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 trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/jobcards-online-integration/index.php:13

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 on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === jobcards-online-integration === )
You can take inspiration from this readme.txt

jobcards-online-integration/index.php 85% from 13 tests

The principal PHP file in "Jobcards Online Integration" v. 4.8 is loaded by WordPress automatically on each request
The following require your attention:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 288 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("jobcards-online-integration.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected1,695 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP23061861,693
CSS1001
JavaScript1011

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity116.00
▷ Minimum class complexity116.00
▷ Maximum class complexity116.00
Average method complexity5.26
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods27
▷ Static methods00.00%
▷ Public methods2592.59%
▷ Protected methods00.00%
▷ Private methods27.41%
Functions30
▷ Named functions30100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/favicon-96x96.png11.68KB3.91KB▼ 66.51%
assets/images/logo.png10.53KB5.18KB▼ 50.77%
assets/images/favicon-32x32.png3.71KB1.55KB▼ 58.08%
assets/images/favicon-16x16.png2.31KB0.79KB▼ 65.71%