78% simple-social-images-wpjm

Code Review | Simple Social Images for WP Job Manager

WordPress plugin Simple Social Images for WP Job Manager scored78%from 54 tests.

About plugin

  • Plugin page: simple-social-ima...
  • Plugin version: 1.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0.1-6.0.1
  • WordPress version: 6.3.1
  • First release: Jul 22, 2022
  • Latest release: Jul 22, 2022
  • Number of updates: 7
  • Update frequency: N/A
  • Top authors: highrisedigital (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /490 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
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼5.57ms] Passed 4 tests

This is a short check of server-side resources used by Simple Social Images for WP Job Manager
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0439.08 ▼4.54
Dashboard /wp-admin3.36 ▲0.0253.99 ▼13.53
Posts /wp-admin/edit.php3.41 ▲0.0650.16 ▼5.73
Add New Post /wp-admin/post-new.php5.95 ▲0.0695.03 ▲5.14
Media Library /wp-admin/upload.php3.28 ▲0.0637.35 ▲1.53
Simple Social Images /wp-admin/edit.php?post_type=job_listing&page=ssi-wpjm-settings3.0424.98

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

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

Browser metrics Passed 4 tests

Simple Social Images for WP Job Manager: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲5614.78 ▲0.431.95 ▲0.1939.19 ▼5.89
Dashboard /wp-admin2,208 ▲175.79 ▲0.94103.82 ▼4.5339.42 ▼3.61
Posts /wp-admin/edit.php2,094 ▲52.04 ▼0.0040.30 ▲3.1034.55 ▲1.76
Add New Post /wp-admin/post-new.php1,539 ▲318.48 ▼4.98616.41 ▼1.8754.02 ▲0.07
Media Library /wp-admin/upload.php1,390 ▼14.18 ▼0.0199.82 ▼7.4344.94 ▼1.58
Simple Social Images /wp-admin/edit.php?post_type=job_listing&page=ssi-wpjm-settings280.440.093.73

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

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

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
  • 12× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-social-images-wpjm/inc/setttings.php:62
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/simple-social-images-wpjm/simple-social-images-wpjm.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-social-images-wpjm/inc/meta-box.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ssi_wpjm_get_template() in wp-content/plugins/simple-social-images-wpjm/endpoints/generate-html.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-social-images-wpjm/inc/functions.php:25
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/simple-social-images-wpjm/inc/plugins/rank-math-seo.php:65
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-social-images-wpjm/inc/enqueue.php:87
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/simple-social-images-wpjm/inc/plugins/all-in-one-seo.php:33
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/simple-social-images-wpjm/inc/loader.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-social-images-wpjm/inc/endpoints.php:16

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
    • > GET request to /wp-admin/edit.php?post_type=job_listing&page=ssi-wpjm-settings
    • > Network (severe)
    wp-admin/edit.php?post_type=job_listing&page=ssi-wpjm-settings - Failed to load resource: the server responded with a status of 403 (Forbidden)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: jobs, social images, twitter, open graph, social sharing...

simple-social-images-wpjm/simple-social-images-wpjm.php 85% from 13 tests

The principal PHP file in "Simple Social Images for WP Job Manager" v. 1.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 190 characters long)
  • Domain Path: The domain path folder was not found ("/languages/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin1,805 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP136425481,206
CSS2459394
JavaScript214698194
HTML14011

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
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%
Functions60
▷ Named functions5998.33%
▷ Anonymous functions11.67%
Constants3
▷ Global constants3100.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
PNG images were not found in this plugin