10% mmm-adp-job-sync

Code Review | Mmm ADP Job Sync

WordPress plugin Mmm ADP Job Sync scored10%from 54 tests.

About plugin

  • Plugin page: mmm-adp-job-sync
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-4.9.1
  • WordPress version: 6.3.1
  • First release: Mar 31, 2018
  • Latest release: Mar 31, 2018
  • Number of updates: 3
  • Update frequency: every 1.0 days
  • Top authors: MManifesto (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /982 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
  • Install procedure had errors
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, cannot access private method ADPJobSync::plugin_activation()

Server metrics [RAM: ▲0.11MB] [CPU: ▼3.56ms] Passed 4 tests

An overview of server-side resources used by Mmm ADP Job Sync
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1051.33 ▲4.80
Dashboard /wp-admin3.41 ▲0.1048.40 ▼3.81
Posts /wp-admin/edit.php3.52 ▲0.1651.00 ▼0.21
Add New Post /wp-admin/post-new.php6.00 ▲0.1290.45 ▼11.29
Media Library /wp-admin/upload.php3.33 ▲0.1040.02 ▲1.07

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Mmm ADP Job Sync: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲3713.25 ▼1.171.85 ▼0.0932.46 ▼11.80
Dashboard /wp-admin2,214 ▲265.02 ▲0.14111.36 ▲3.6841.12 ▼3.75
Posts /wp-admin/edit.php2,097 ▲82.02 ▼0.0136.64 ▼4.0333.97 ▼0.51
Add New Post /wp-admin/post-new.php1,521 ▼1217.50 ▼5.64657.54 ▼28.3951.00 ▼7.60
Media Library /wp-admin/upload.php1,399 ▲144.27 ▲0.0898.55 ▼23.5042.97 ▼5.92
ADPJS Settings /wp-admin/adpjs-admin.php260.440.0714.59

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, cannot access private method ADPJobSync::plugin_deactivation()
  • The uninstall procedure has failed, 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 50% 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)
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
Please fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/mmm-adp-job-sync/mmm-adp-job-sync.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/mmm-adp-job-sync/includes/admin_page.php:2

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
    • > GET request to /wp-admin/adpjs-admin.php
    • > Network (severe)
    wp-admin/adpjs-admin.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: careers, adp, jobs, automation

mmm-adp-job-sync/mmm-adp-job-sync.php Passed 13 tests

This is the main PHP file of "Mmm ADP Job Sync" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
105 characters long description:
Allows you to read public ADP job listings from workforcenow.adp.com and sync them as posts on your site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin536 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP38016494
JavaScript13040
CSS20162

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity20.00
▷ Minimum class complexity17.00
▷ Maximum class complexity23.00
Average method complexity2.15
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods33
▷ Static methods1236.36%
▷ Public methods2266.67%
▷ Protected methods00.00%
▷ Private methods1133.33%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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