83% empty-meta-cleanup-for-wp-job-manager

Code Review | Empty Meta Cleanup for WP Job Manager

WordPress plugin Empty Meta Cleanup for WP Job Manager scored83%from 54 tests.

About plugin

  • Plugin page: empty-meta-cleanu...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-5.9
  • WordPress version: 6.3.1
  • First release: Jan 31, 2022
  • Latest release: Feb 3, 2022
  • Number of updates: 4
  • Update frequency: every 1.5 days
  • Top authors: tripflex (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /1,669 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
Install script ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼7.79ms] Passed 4 tests

Server-side resources used by Empty Meta Cleanup for WP Job Manager
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0738.88 ▼7.61
Dashboard /wp-admin3.41 ▲0.0749.00 ▼8.99
Posts /wp-admin/edit.php3.53 ▲0.1750.09 ▲2.12
Add New Post /wp-admin/post-new.php6.00 ▲0.1183.24 ▼14.71
Media Library /wp-admin/upload.php3.34 ▲0.1036.71 ▲0.15

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Empty Meta Cleanup for WP Job Manager
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.16 ▼1.231.72 ▼0.1944.42 ▲0.07
Dashboard /wp-admin2,206 ▲215.91 ▲0.06112.15 ▲3.4343.37 ▲0.93
Posts /wp-admin/edit.php2,092 ▲32.06 ▲0.0139.51 ▼0.5736.68 ▼1.02
Add New Post /wp-admin/post-new.php1,536 ▲1523.19 ▲0.03660.68 ▲8.5357.69 ▲7.36
Media Library /wp-admin/upload.php1,388 ▲34.27 ▼0.0295.70 ▼4.5941.91 ▼1.43

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 27× PHP files output text when accessed directly (only 10 are shown):
    • > /wp-content/plugins/empty-meta-cleanup-for-wp-job-manager/classes/admin/plugins/mascm.php
    • > /wp-content/plugins/empty-meta-cleanup-for-wp-job-manager/classes/admin/settings.php
    • > /wp-content/plugins/empty-meta-cleanup-for-wp-job-manager/classes/admin/plugins/cariera.php
    • > /wp-content/plugins/empty-meta-cleanup-for-wp-job-manager/classes/admin/plugins/afjcl.php
    • > /wp-content/plugins/empty-meta-cleanup-for-wp-job-manager/classes/plugins.php
    • > /wp-content/plugins/empty-meta-cleanup-for-wp-job-manager/classes/admin/meta/remove.php
    • > /wp-content/plugins/empty-meta-cleanup-for-wp-job-manager/wp-job-manager-empty-meta-cleanup.php
    • > /wp-content/plugins/empty-meta-cleanup-for-wp-job-manager/classes/admin/plugins/cariera/settings.php
    • > /wp-content/plugins/empty-meta-cleanup-for-wp-job-manager/classes/admin/plugins/mascm/settings.php
    • > /wp-content/plugins/empty-meta-cleanup-for-wp-job-manager/classes/admin/job/settings.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention: The official readme.txt is a good inspiration

empty-meta-cleanup-for-wp-job-manager/wp-job-manager-empty-meta-cleanup.php 69% from 13 tests

The main file in "Empty Meta Cleanup for WP Job Manager" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("empty-meta-cleanup-for-wp-job-manager.php" instead of "wp-job-manager-empty-meta-cleanup.php")
  • Requires at least: Required version does not match the one declared in readme.txt ("5.2" instead of "4.2")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected776 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
PHP28318832776

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity4.77
▷ Minimum class complexity1.00
▷ Maximum class complexity14.00
Average method complexity2.32
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces12
Interfaces0
Traits0
Classes26
▷ Abstract classes00.00%
▷ Concrete classes26100.00%
▷ Final classes00.00%
Methods74
▷ Static methods1418.92%
▷ Public methods7398.65%
▷ Protected methods11.35%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin