78% mainjobs-admin

Code Review | Mainjobs Admin

WordPress plugin Mainjobs Admin scored78%from 54 tests.

About plugin

  • Plugin page: mainjobs-admin
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.8.1
  • WordPress version: 6.3.1
  • First release: Sep 27, 2021
  • Latest release: Sep 27, 2021
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: closemarketing (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /287 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.11MB] [CPU: ▼11.71ms] Passed 4 tests

A check of server-side resources used by Mainjobs Admin
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0939.92 ▼6.01
Dashboard /wp-admin3.78 ▲0.4851.39 ▼0.73
Posts /wp-admin/edit.php3.51 ▲0.1650.66 ▼3.67
Add New Post /wp-admin/post-new.php5.98 ▲0.0987.00 ▼36.44
Media Library /wp-admin/upload.php3.33 ▲0.1041.17 ▲2.36

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

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

Browser metrics Passed 4 tests

Mainjobs Admin: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,995 ▲23414.32 ▼0.031.90 ▲0.2041.25 ▲2.23
Dashboard /wp-admin2,084 ▼945.50 ▼0.1584.51 ▼18.3436.78 ▼4.79
Posts /wp-admin/edit.php2,090 ▼101.97 ▲0.0239.57 ▼0.0832.96 ▼5.20
Add New Post /wp-admin/post-new.php1,545 ▲1922.86 ▼0.86656.59 ▼17.0762.95 ▲10.88
Media Library /wp-admin/upload.php1,449 ▲494.17 ▼0.0296.00 ▼13.2642.12 ▼5.20

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 0% 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
The following issues need your attention
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/mainjobs-admin/mainjobs-admin.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mainjobs-admin/includes/class-ccaa-admin.php:22

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
1 plugin tags: custom-admin

mainjobs-admin/mainjobs-admin.php 85% from 13 tests

"Mainjobs Admin" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Domain Path: The domain path folder was not found ("/languages")

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
Good job! No executable or dangerous file extensions detected443 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP266206268
SVG300175

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity19.00
▷ Minimum class complexity19.00
▷ Maximum class complexity19.00
Average method complexity1.62
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods25
▷ Static methods00.00%
▷ Public methods25100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected