Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.33MB] [CPU: ▼132.84ms] Passed 4 tests
Server-side resources used by Import Listings into WP Job Manager
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.14 ▲0.42 | 34.48 ▲10.55 |
Dashboard /wp-admin | 3.43 ▲0.37 | 53.40 ▲6.45 |
Posts /wp-admin/edit.php | 3.48 ▲0.37 | 55.38 ▲7.52 |
Add New Post /wp-admin/post-new.php | 5.72 ▲0.29 | 101.18 ▼550.29 |
Media Library /wp-admin/upload.php | 3.31 ▲0.31 | 38.61 ▲4.98 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Import Listings into WP Job Manager
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,781 ▲186 | 15.80 ▼0.16 | 9.93 ▼1.22 | 61.55 ▲8.97 |
Dashboard /wp-admin | 3,015 ▲81 | 5.94 ▼0.01 | 144.52 ▼13.50 | 127.15 ▲7.67 |
Posts /wp-admin/edit.php | 2,813 ▲74 | 2.73 ▲0.01 | 71.60 ▼2.70 | 108.06 ▲9.16 |
Add New Post /wp-admin/post-new.php | 1,646 ▼37 | 21.47 ▲4.78 | 286.56 ▼122.80 | 138.14 ▲22.32 |
Media Library /wp-admin/upload.php | 1,878 ▲68 | 5.00 ▼0.03 | 139.84 ▼23.90 | 130.39 ▲8.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking 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
Almost there! Just fix the following items
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WPAI_WP_Job_Manager_Add_On_Importer' not found in wp-content/plugins/wp-job-manager-xml-csv-listings-import/classes/class-importer-jobs.php:3
- > PHP Fatal error
Uncaught Error: Class 'WPAI_WP_Job_Manager_Add_On_Importer' not found in wp-content/plugins/wp-job-manager-xml-csv-listings-import/classes/class-importer-jobs-location.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-job-manager-xml-csv-listings-import/wp-job-manager-add-on.php:89
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
wp-job-manager-xml-csv-listings-import/wp-job-manager-add-on.php 92% from 13 tests
The main PHP script in "Import Listings into WP Job Manager" version 1.2.1 is automatically included on every request by WordPress
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-job-manager-xml-csv-listings-import.php" instead of "wp-job-manager-add-on.php")
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 detected1,544 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 441 | 138 | 1,543 |
Markdown | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 44.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 211.00 |
Average method complexity | 4.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 45.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 1 | 14.29% |
Methods | 80 | |
▷ Static methods | 1 | 1.25% |
▷ Public methods | 79 | 98.75% |
▷ Protected methods | 1 | 1.25% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected