Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼5.90ms] 75% from 4 tests
A check of server-side resources used by UW Freelancer
It is recommended to improve the following
- CPU: The total CPU usage must kept under 500.00ms (currently 2,652.89ms on /wp-admin/admin.php?page=uw-freelancer-settings)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 36.22 ▼1.61 |
Dashboard /wp-admin | 3.35 ▲0.05 | 48.11 ▼6.30 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 48.26 ▼2.60 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 81.43 ▼13.09 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 35.05 ▼1.20 |
Dashboard /wp-admin/admin.php?page=uw-freelancer-settings | 3.80 | 2,652.89 |
API Console /wp-admin/admin.php?page=uw-freelancer-api-console | 3.24 | 31.03 |
Server storage [IO: ▲0.26MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 51 new files
Database: no new tables, 11 new options
New WordPress options |
---|
widget_uw-freelancer-affiliate |
uw_freelancer_styles |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
uw_freelancer_options |
widget_uw-freelancer-feedback-r |
widget_uw-freelancer-profile |
... |
Browser metrics Passed 4 tests
UW Freelancer: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,939 ▲204 | 13.56 ▼0.82 | 8.20 ▲6.49 | 40.24 ▼0.60 |
Dashboard /wp-admin | 2,232 ▲41 | 5.84 ▲0.96 | 109.04 ▲5.21 | 73.78 ▲30.57 |
Posts /wp-admin/edit.php | 2,118 ▲29 | 2.00 ▼0.02 | 38.14 ▼3.01 | 34.35 ▲0.07 |
Add New Post /wp-admin/post-new.php | 1,545 ▲31 | 18.44 ▲0.83 | 686.92 ▲75.71 | 59.69 ▲1.92 |
Media Library /wp-admin/upload.php | 1,417 ▲26 | 4.23 ▼0.01 | 98.60 ▼0.46 | 47.34 ▲4.69 |
Dashboard /wp-admin/admin.php?page=uw-freelancer-settings | 905 | 2.04 | 27.02 | 30.81 |
API Console /wp-admin/admin.php?page=uw-freelancer-api-console | 831 | 2.07 | 26.99 | 28.48 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The uninstall procedure has failed, leaving 9 options in the database
- widget_uw-freelancer-feedback-r
- widget_uw-freelancer-profile
- widget_uw-freelancer-affiliate
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
The following issues need your attention
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/uw-freelancer/inc/class-uwf-profile.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/uw-freelancer/uw-freelancer.php:30
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/uw-freelancer/inc/class-uwf-affiliate.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/uw-freelancer/inc/class-uwf-feedback.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: freelancercom, affiliate widget, freelancer, profile widget, feedback widget
uw-freelancer/uw-freelancer.php Passed 13 tests
The entry point to "UW Freelancer" version 0.1 is a PHP file that has certain tags in its header comment area
119 characters long description:
Display freelancer.com user information, including feedback, using widgets. ( + freelancer.com project listing widget )
Code Analysis Passed 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
Everything looks great! No dangerous files found in this plugin2,762 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 322 | 41 | 1,318 |
CSS | 4 | 36 | 52 | 1,181 |
PO File | 1 | 55 | 56 | 123 |
Sass | 2 | 3 | 1 | 69 |
JavaScript | 2 | 18 | 3 | 65 |
Ruby | 1 | 6 | 12 | 6 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 15.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 81.00 |
Average method complexity | 3.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 61.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 38 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 38 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 44 | |
▷ Named functions | 44 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
21 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.36KB | 0.18KB | ▼ 51.09% |
images/uw-freelancer-gold-member.png | 5.72KB | 3.15KB | ▼ 44.97% |
images/uw-freelancer-icon.png | 3.07KB | 0.45KB | ▼ 85.29% |
images/uw-freelancer-hireme.png | 2.61KB | 2.51KB | ▼ 3.60% |
css/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png | 0.38KB | 0.15KB | ▼ 59.69% |