83% indeed-apply-shortcode

Code Review | Indeed Apply Shortcode

WordPress plugin Indeed Apply Shortcode scored83%from 54 tests.

About plugin

  • Plugin page: indeed-apply-shor...
  • Plugin version: 1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-4.4
  • WordPress version: 6.3.1
  • First release: Mar 6, 2014
  • Latest release: Dec 14, 2015
  • Number of updates: 25
  • Update frequency: every 26.5 days
  • Top authors: Indeed.com (92%)Taylor4484 (12%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /4,844 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.05MB] [CPU: ▼10.49ms] Passed 4 tests

An overview of server-side resources used by Indeed Apply Shortcode
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0536.61 ▼7.40
Dashboard /wp-admin3.37 ▲0.0245.39 ▼21.95
Posts /wp-admin/edit.php3.48 ▲0.1247.62 ▲0.39
Add New Post /wp-admin/post-new.php5.95 ▲0.0691.73 ▼12.88
Media Library /wp-admin/upload.php3.29 ▲0.0635.70 ▲0.27
Indeed Apply /wp-admin/options-general.php?page=indeed-apply3.2531.78

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Indeed Apply Shortcode
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,838 ▲9213.74 ▼0.501.80 ▼0.1040.96 ▼1.40
Dashboard /wp-admin2,219 ▲314.87 ▲0.01111.50 ▼2.4542.78 ▼0.20
Posts /wp-admin/edit.php2,102 ▲132.01 ▲0.0440.45 ▲2.7637.66 ▲2.72
Add New Post /wp-admin/post-new.php1,545 ▲2223.01 ▼0.18578.07 ▼91.2951.91 ▲4.01
Media Library /wp-admin/upload.php1,401 ▲104.24 ▼0.0496.96 ▼3.1342.70 ▼2.15
Indeed Apply /wp-admin/options-general.php?page=indeed-apply8012.0323.1928.19

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means 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
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/indeed-apply-shortcode/wp-indeed-apply.php:43

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Screenshots: Add images for these screenshots: #1 (Job posting with an Indeed Apply button), #2 (User-friendly, mobile-optimized Indeed Apply application form), #3 (The application confirmation email generated by Indeed Apply, sent to applicants.), #4 (The email application generated by Indeed Apply, sent to the Employer), #5 (Indeed Apply Shortcode in the WordPress Post Editor), #6 (Indeed Apply Settings Page)
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
The official readme.txt is a good inspiration

indeed-apply-shortcode/wp-indeed-apply.php 92% from 13 tests

"Indeed Apply Shortcode" version 1.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("indeed-apply-shortcode.php" instead of "wp-indeed-apply.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected418 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP4133320418

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity16.33
▷ Minimum class complexity6.00
▷ Maximum class complexity33.00
Average method complexity2.18
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods39
▷ Static methods1025.64%
▷ Public methods3384.62%
▷ Protected methods00.00%
▷ Private methods615.38%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.59MB with 0.41MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-4.png134.86KB43.74KB▼ 67.57%
screenshot-2.png80.74KB24.92KB▼ 69.14%
screenshot-5.png162.98KB55.85KB▼ 65.73%
screenshot-6.png76.42KB22.10KB▼ 71.08%
screenshot-1.png91.97KB26.09KB▼ 71.64%