Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.07MB] [CPU: ▼4.55ms] Passed 4 tests
Server-side resources used by Freelancer
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 36.59 ▲0.50 |
Dashboard /wp-admin | 3.38 ▲0.08 | 44.80 ▼7.31 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 41.99 ▼6.15 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 90.75 ▲5.14 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 30.14 ▼5.24 |
New Invoice /wp-admin/post-new.php?post_type=invoice | 3.43 | 58.13 |
All Invoices /wp-admin/edit.php?post_type=invoice | 3.35 | 35.14 |
Invoice Statuses /wp-admin/edit-tags.php?taxonomy=invoice_status&post_type=invoice | 3.29 | 32.15 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
freelancer_settings |
Browser metrics Passed 4 tests
An overview of browser requirements for Freelancer
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,850 ▲104 | 14.42 ▲0.05 | 1.89 ▲0.02 | 45.25 ▼5.81 |
Dashboard /wp-admin | 2,247 ▲56 | 5.77 ▼0.14 | 100.79 ▼66.35 | 41.80 ▼9.14 |
Posts /wp-admin/edit.php | 2,136 ▲50 | 2.06 ▲0.01 | 39.49 ▼1.39 | 35.60 ▼6.72 |
Add New Post /wp-admin/post-new.php | 1,574 ▲41 | 23.45 ▲0.22 | 604.83 ▼96.02 | 51.27 ▼15.23 |
Media Library /wp-admin/upload.php | 1,438 ▲50 | 4.20 ▼0.07 | 97.58 ▼29.29 | 42.65 ▼6.52 |
New Invoice /wp-admin/post-new.php?post_type=invoice | 2,614 | 8.14 | 219.01 | 84.33 |
All Invoices /wp-admin/edit.php?post_type=invoice | 1,169 | 1.95 | 34.00 | 31.58 |
Invoice Statuses /wp-admin/edit-tags.php?taxonomy=invoice_status&post_type=invoice | 1,281 | 2.14 | 32.18 | 38.40 |
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
These items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- freelancer_settings
Smoke tests 50% 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 | 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
Please take a closer look at the following
- 8× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/freelancer/admin/meta-box-plugin-settings.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/freelancer/includes/taxonomies.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/freelancer/admin/settings.php:41
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/freelancer/admin/users.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/freelancer/includes/post-types.php:93
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/freelancer/admin/admin.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/freelancer/freelancer.php:50
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/freelancer/includes/user-meta.php:155
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
- > GET request to /wp-admin/post-new.php?post_type=invoice
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).live is not a function" "TypeError: $(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-admin/post-new.php?post_type=invoice:496:41)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/post-new.php?post_type=invoice
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: $(...).live is not a function
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
9 plugin tags: support, tickets, freelance, invoices, freelancer...
freelancer/freelancer.php Passed 13 tests
"Freelancer" version 0.3.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
58 characters long description:
Make your business more easy. Invoices, Tickets and more!.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected1,215 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 582 | 565 | 1,110 |
CSS | 2 | 1 | 1 | 50 |
Markdown | 1 | 34 | 0 | 30 |
JavaScript | 1 | 0 | 0 | 25 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 2 | 33.33% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 66 | |
▷ Named functions | 66 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin