Benchmarks
Plugin footprint 56% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
- The plugin cannot be installed
- > User deprecated in wp-includes/functions.php+5453
Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.
Server metrics [RAM: ▲11.37MB] [CPU: ▲96.46ms] 50% from 4 tests
Analyzing server-side resources used by Projectopia - WordPress Project Management Plugin
Please have a look at the following items
- RAM: Total memory usage should be kept under 10MB (currently 14.62MB on /wp-admin/admin.php?page=pto-updates)
- Extra RAM: The extra memory usage must be under 5MB (currently 11.37MB on /wp-admin/admin.php?page=pto-updates)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 14.60 ▲11.14 | 131.06 ▲87.31 |
Dashboard /wp-admin | 14.73 ▲11.42 | 154.71 ▲95.92 |
Posts /wp-admin/edit.php | 14.82 ▲11.46 | 168.54 ▲111.26 |
Add New Post /wp-admin/post-new.php | 17.36 ▲11.47 | 207.48 ▲104.80 |
Media Library /wp-admin/upload.php | 14.66 ▲11.44 | 139.87 ▲97.81 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 14.89 | 127.38 |
Project Updates /wp-admin/admin.php?page=pto-updates | 14.62 | 135.39 |
Server storage [IO: ▲26.89MB] [DB: ▲0.06MB] 67% from 3 tests
Filesystem and database footprint
These are issues you should consider
- Total filesystem usage should be limited to 25MB (currently using 26.89MB)
Filesystem: 1,511 new files
Database: no new tables, 146 new options
New WordPress options |
---|
client_quote_message_email |
pto_v5_0_7_compat_complete |
cqpim_bounce_subject |
pto_support_open_message |
cqpim_send_piping_reject |
password_reset_subject |
cqpim_messages_allow_client |
cqpim_create_support_on_email |
client_message_subject |
team_account_subject |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Projectopia - WordPress Project Management Plugin
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,084 ▲323 | 13.55 ▼0.80 | 5.18 ▲3.44 | 28.93 ▼12.24 |
Dashboard /wp-admin | 2,335 ▲161 | 5.67 ▲0.01 | 97.15 ▼1.22 | 74.80 ▲36.08 |
Posts /wp-admin/edit.php | 2,262 ▲162 | 2.25 ▲0.24 | 34.95 ▼5.05 | 34.98 ▼6.33 |
Add New Post /wp-admin/post-new.php | 1,595 ▲58 | 21.02 ▼1.85 | 722.37 ▲38.16 | 51.62 ▼4.51 |
Media Library /wp-admin/upload.php | 1,559 ▲159 | 4.29 ▲0.10 | 102.62 ▼10.60 | 80.33 ▲33.48 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,210 | 1.78 | 27.02 | 26.77 |
Project Updates /wp-admin/admin.php?page=pto-updates | 1,002 | 1.74 | 29.49 | 33.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.06MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 146 options in the database
- cqpim_save_dashboard_metabox_filters
- client_invoice_receipt_email
- auto_welcome
- team_account_subject
- client_invoice_reminder_email
- cqpim_new_message_subject
- assignment_response_subject
- support_status
- currency_symbol
- fs_active_plugins
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
Almost there! Just fix the following items
- 3× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/projectopia-core/assets/dompdf/lib/php-css-parser/tests/quickdump.php
- > /wp-content/plugins/projectopia-core/includes/frontend/stripe-sca/build.php
- > /wp-content/plugins/projectopia-core/includes/frontend/stripe-sca/update_certs.php
- 651× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/projectopia-core/includes/frontend/stripe-sca/lib/Issuing/CardDetails.php:16
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Exception\\ApiErrorException' not found in wp-content/plugins/projectopia-core/includes/frontend/stripe-sca/lib/Exception/InvalidRequestException.php:9
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractServiceFactory' not found in wp-content/plugins/projectopia-core/includes/frontend/stripe-sca/lib/Service/TestHelpers/Terminal/TerminalServiceFactory.php:12
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/projectopia-core/includes/frontend/stripe-sca/lib/Charge.php:65
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/projectopia-core/includes/frontend/stripe-sca/lib/Service/Terminal/ConnectionTokenService.php:7
- > PHP Fatal error
Uncaught Error: Class 'Sabberworm\\CSS\\CSSList\\CSSList' not found in wp-content/plugins/projectopia-core/assets/dompdf/lib/php-css-parser/lib/Sabberworm/CSS/CSSList/CSSBlockList.php:16
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/projectopia-core/includes/frontend/stripe-sca/lib/Service/ChargeService.php:7
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/projectopia-core/includes/frontend/stripe-sca/lib/Service/FileLinkService.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/projectopia-core/includes/meta/leadforms/form_details.php:52
- > PHP Fatal error
Uncaught Error: Class 'PhpCsFixer\\Finder' not found in wp-content/plugins/projectopia-core/includes/frontend/stripe-sca/.php-cs-fixer.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: project, project management
projectopia-core/projectopia-core.php 92% from 13 tests
Analyzing the main PHP file in "Projectopia - WordPress Project Management Plugin" version 5.1.5
Please take the time to fix the following:
- Description: The description should be shorter than 140 characters (currently 218 characters long)
Code Analysis 0% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Please fix the following items
- You should never include executable (binary) or otherwise dangerous files in your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/projectopia-core/includes/frontend/stripe-sca/data/ca-certificates.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 799 | 21,308 | 46,165 | 160,371 |
JavaScript | 159 | 1,413 | 2,702 | 33,188 |
JSON | 17 | 0 | 0 | 18,811 |
CSS | 82 | 1,749 | 627 | 8,978 |
Sass | 3 | 390 | 14 | 2,193 |
Markdown | 8 | 974 | 0 | 2,167 |
XML | 6 | 3 | 0 | 959 |
SVG | 60 | 0 | 0 | 575 |
YAML | 4 | 12 | 2 | 67 |
make | 1 | 8 | 0 | 23 |
HTML | 1 | 0 | 0 | 17 |
PHP code 0% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 3,073)
- Method cyclomatic complexity has to be reduced to less than 100 (currently 652)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 26.22 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 3.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 652.00 |
Code structure | ||
---|---|---|
Namespaces | 61 | |
Interfaces | 14 | |
Traits | 8 | |
Classes | 452 | |
▷ Abstract classes | 24 | 5.31% |
▷ Concrete classes | 428 | 94.69% |
▷ Final classes | 0 | 0.00% |
Methods | 4,238 | |
▷ Static methods | 470 | 11.09% |
▷ Public methods | 3,440 | 81.17% |
▷ Protected methods | 271 | 6.39% |
▷ Private methods | 527 | 12.44% |
Functions | 663 | |
▷ Named functions | 632 | 95.32% |
▷ Anonymous functions | 31 | 4.68% |
Constants | 1,136 | |
▷ Global constants | 123 | 10.83% |
▷ Class constants | 1,013 | 89.17% |
▷ Public constants | 1,013 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
119 PNG files occupy 1.72MB with 0.95MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/css/images/tooltip.png | 2.36KB | 0.65KB | ▼ 72.45% |
assets/admin/img/david.png | 12.39KB | 4.97KB | ▼ 59.87% |
includes/css/img/reorder.png | 0.26KB | 0.25KB | ▼ 3.01% |
img/watching.png | 47.32KB | 0.50KB | ▼ 98.95% |
assets/freemius/assets/img/pto-bugs.png | 9.16KB | 5.26KB | ▼ 42.58% |