83% auto-delete-applications-add-on-for-wp-job-openings

Code Review | Auto Delete Applications - Add-on for WP Job Openings

WordPress plugin Auto Delete Applications - Add-on for WP Job Openings scored83%from 54 tests.

About plugin

  • Plugin page: auto-delete-appli...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.3
  • WordPress version: 6.3.1
  • First release: Aug 28, 2020
  • Latest release: Aug 9, 2023
  • Number of updates: 9
  • Update frequency: every 119.6 days
  • Top authors: awsmin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /4,516 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Auto Delete Applications - Add-on for WP Job Openings
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.00 ▼4.90
Dashboard /wp-admin3.31 ▲0.0044.66 ▼6.02
Posts /wp-admin/edit.php3.36 ▲0.0046.30 ▼0.70
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.90 ▼6.91
Media Library /wp-admin/upload.php3.23 ▲0.0034.29 ▼0.29

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-comments
db_upgraded
awsm_jobs_adl_general_settings
widget_theysaidso_widget
theysaidso_admin_options
awsm_jobs_adl_register_default_settings
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Auto Delete Applications - Add-on for WP Job Openings
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.30 ▼1.081.60 ▼0.1839.06 ▼12.59
Dashboard /wp-admin2,209 ▲184.85 ▼0.04108.16 ▲1.0040.54 ▼2.54
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0341.64 ▲6.3236.56 ▲2.40
Add New Post /wp-admin/post-new.php1,529 ▼718.23 ▼5.08604.67 ▼57.3756.66 ▲0.67
Media Library /wp-admin/upload.php1,388 ▲34.21 ▼0.0293.95 ▼7.2040.54 ▼3.10

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 8 options in the database
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • awsm_jobs_adl_register_default_settings
    • can_compress_scripts
    • widget_theysaidso_widget
    • awsm_jobs_adl_general_settings

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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 take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Cannot access self:: when no class scope is active in wp-content/plugins/auto-delete-applications-add-on-for-wp-job-openings/inc/remove-applications.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention: The official readme.txt is a good inspiration

auto-delete-applications-add-on-for-wp-job-openings/auto-delete.php 85% from 13 tests

The principal PHP file in "Auto Delete Applications - Add-on for WP Job Openings" v. 1.0.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: The principal plugin file should be the same as the plugin slug ("auto-delete-applications-add-on-for-wp-job-openings.php" instead of "auto-delete.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin294 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP24326294

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity34.00
▷ Minimum class complexity34.00
▷ Maximum class complexity34.00
Average method complexity2.45
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods21
▷ Static methods419.05%
▷ Public methods1885.71%
▷ Protected methods00.00%
▷ Private methods314.29%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants3
▷ Global constants3100.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
There were not PNG files found in your plugin