79% freelancer

Code Review | Freelancer

WordPress plugin Freelancer scored79%from 54 tests.

About plugin

  • Plugin page: freelancer
  • Plugin version: 0.3.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7.1-3.8
  • WordPress version: 6.3.1
  • First release: Dec 9, 2013
  • Latest release: Dec 11, 2013
  • Number of updates: 15
  • Update frequency: every 0.2 days
  • Top authors: namaless (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

10+ active /8,050 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0736.59 ▲0.50
Dashboard /wp-admin3.38 ▲0.0844.80 ▼7.31
Posts /wp-admin/edit.php3.44 ▲0.0841.99 ▼6.15
Add New Post /wp-admin/post-new.php5.96 ▲0.0890.75 ▲5.14
Media Library /wp-admin/upload.php3.30 ▲0.0730.14 ▼5.24
New Invoice /wp-admin/post-new.php?post_type=invoice3.4358.13
All Invoices /wp-admin/edit.php?post_type=invoice3.3535.14
Invoice Statuses /wp-admin/edit-tags.php?taxonomy=invoice_status&post_type=invoice3.2932.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,850 ▲10414.42 ▲0.051.89 ▲0.0245.25 ▼5.81
Dashboard /wp-admin2,247 ▲565.77 ▼0.14100.79 ▼66.3541.80 ▼9.14
Posts /wp-admin/edit.php2,136 ▲502.06 ▲0.0139.49 ▼1.3935.60 ▼6.72
Add New Post /wp-admin/post-new.php1,574 ▲4123.45 ▲0.22604.83 ▼96.0251.27 ▼15.23
Media Library /wp-admin/upload.php1,438 ▲504.20 ▼0.0797.58 ▼29.2942.65 ▼6.52
New Invoice /wp-admin/post-new.php?post_type=invoice2,6148.14219.0184.33
All Invoices /wp-admin/edit.php?post_type=invoice1,1691.9534.0031.58
Invoice Statuses /wp-admin/edit-tags.php?taxonomy=invoice_status&post_type=invoice1,2812.1432.1838.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP155825651,110
CSS21150
Markdown134030
JavaScript10025

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 code0.26
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods233.33%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions66
▷ Named functions66100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
There were not PNG files found in your plugin