Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.48MB] [CPU: ▼139.39ms] Passed 4 tests
A check of server-side resources used by Civic Job Posting
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.33 ▲0.61 | 37.88 ▲17.54 |
Dashboard /wp-admin | 3.55 ▲0.50 | 45.64 ▲1.17 |
Posts /wp-admin/edit.php | 3.60 ▲0.49 | 42.77 ▼2.65 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.50 | 93.53 ▼561.12 |
Media Library /wp-admin/upload.php | 3.43 ▲0.43 | 36.79 ▲5.03 |
Job Posting /wp-admin/edit.php?post_type=civic-job-posting | 3.54 | 37.05 |
Category /wp-admin/edit-tags.php?taxonomy=cjp_category&post_type=civic-job-posting | 3.46 | 36.79 |
Add New Job Posting /wp-admin/post-new.php?post_type=civic-job-posting | 3.71 | 55.74 |
Server storage [IO: ▲20.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 7,878 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Civic Job Posting
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,749 ▲153 | 15.86 ▲0.32 | 9.82 ▼0.24 | 51.02 ▲6.36 |
Dashboard /wp-admin | 3,031 ▲100 | 5.98 ▲0.07 | 137.76 ▼5.23 | 119.55 ▼6.22 |
Posts /wp-admin/edit.php | 2,803 ▲64 | 2.73 ▲0.00 | 70.27 ▲6.48 | 90.88 ▼0.21 |
Add New Post /wp-admin/post-new.php | 1,726 ▲111 | 18.27 ▼3.16 | 365.41 ▲88.79 | 121.24 ▲18.66 |
Media Library /wp-admin/upload.php | 1,871 ▲64 | 5.06 ▲0.04 | 167.19 ▲17.35 | 123.00 ▲8.83 |
Job Posting /wp-admin/edit.php?post_type=civic-job-posting | 1,470 | 2.62 | 66.07 | 76.29 |
Category /wp-admin/edit-tags.php?taxonomy=cjp_category&post_type=civic-job-posting | 1,800 | 2.38 | 61.66 | 86.72 |
Add New Job Posting /wp-admin/post-new.php?post_type=civic-job-posting | 4,227 | 8.66 | 221.79 | 156.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully
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
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 7658× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Monolog\\Formatter\\FormatterInterface' not found in wp-content/plugins/civic-job-posting/admin/google-api-php-client-2.2.2/vendor/monolog/monolog/src/Monolog/Formatter/MongoDBFormatter.php:19
- > PHP Fatal error
Uncaught Error: Class 'Google_Collection' not found in wp-content/plugins/civic-job-posting/admin/google-api-php-client-2.2.2/vendor/google/apiclient-services/src/Google/Service/ServiceUsage/Quota.php:18
- > PHP Fatal error
Uncaught Error: Class 'Google_Model' not found in wp-content/plugins/civic-job-posting/admin/google-api-php-client-2.2.2/vendor/google/apiclient-services/src/Google/Service/YouTubeReporting/ReportType.php:18
- > PHP Fatal error
Uncaught Error: Class 'Google_Model' not found in wp-content/plugins/civic-job-posting/admin/google-api-php-client-2.2.2/vendor/google/apiclient-services/src/Google/Service/Directory/UserOrganization.php:18
- > PHP Fatal error
Uncaught Error: Class 'Google_Model' not found in wp-content/plugins/civic-job-posting/admin/google-api-php-client-2.2.2/vendor/google/apiclient-services/src/Google/Service/CloudKMS/CryptoKey.php:18
- > PHP Fatal error
Uncaught Error: Class 'Google_Service_Resource' not found in wp-content/plugins/civic-job-posting/admin/google-api-php-client-2.2.2/vendor/google/apiclient-services/src/Google/Service/Taskqueue/Resource/Taskqueues.php:26
- > PHP Fatal error
Uncaught Error: Class 'Google_Collection' not found in wp-content/plugins/civic-job-posting/admin/google-api-php-client-2.2.2/vendor/google/apiclient-services/src/Google/Service/Vault/ListMattersResponse.php:18
- > PHP Fatal error
Uncaught Error: Class 'Google_Model' not found in wp-content/plugins/civic-job-posting/admin/google-api-php-client-2.2.2/vendor/google/apiclient-services/src/Google/Service/Tasks/TaskList.php:18
- > PHP Fatal error
Uncaught Error: Class 'Google_Collection' not found in wp-content/plugins/civic-job-posting/admin/google-api-php-client-2.2.2/vendor/google/apiclient-services/src/Google/Service/Blogger/PostReplies.php:18
- > PHP Fatal error
Uncaught Error: Class 'Google_Model' not found in wp-content/plugins/civic-job-posting/admin/google-api-php-client-2.2.2/vendor/google/apiclient-services/src/Google/Service/Dialogflow/GoogleCloudDialogflowV2beta1EventInput.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: jobs, job posting, google search jobs
civic-job-posting/civic-job-posting.php 92% from 13 tests
The primary PHP file in "Civic Job Posting" version 1.2.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Description: Keep the plugin description shorter than 140 characters (currently 170 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected414,802 lines of code in 7,846 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7,793 | 23,727 | 238,398 | 408,705 |
Markdown | 28 | 1,431 | 0 | 4,624 |
JSON | 15 | 0 | 0 | 1,113 |
CSS | 2 | 16 | 10 | 236 |
XML | 3 | 3 | 0 | 43 |
YAML | 2 | 9 | 0 | 38 |
JavaScript | 2 | 10 | 27 | 34 |
make | 1 | 4 | 0 | 9 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
It is recommended to fix the following
- Please reduce cyclomatic complexity of methods to less than 100 (currently 103)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.05 |
Average class complexity | 1.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 626.00 |
Average method complexity | 1.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 103.00 |
Code structure | ||
---|---|---|
Namespaces | 38 | |
Interfaces | 25 | |
Traits | 5 | |
Classes | 7,775 | |
▷ Abstract classes | 10 | 0.13% |
▷ Concrete classes | 7,765 | 99.87% |
▷ Final classes | 9 | 0.12% |
Methods | 57,389 | |
▷ Static methods | 139 | 0.24% |
▷ Public methods | 56,932 | 99.20% |
▷ Protected methods | 205 | 0.36% |
▷ Private methods | 252 | 0.44% |
Functions | 255 | |
▷ Named functions | 74 | 29.02% |
▷ Anonymous functions | 181 | 70.98% |
Constants | 753 | |
▷ Global constants | 23 | 3.05% |
▷ Class constants | 730 | 96.95% |
▷ Public constants | 730 | 100.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
There were not PNG files found in your plugin