Benchmarks
Plugin footprint 83% from 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.10MB] [CPU: ▼2.93ms] Passed 4 tests
Server-side resources used by WP Odesks
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 40.68 ▲0.82 |
Dashboard /wp-admin | 3.41 ▲0.11 | 45.84 ▼1.44 |
Posts /wp-admin/edit.php | 3.52 ▲0.17 | 46.94 ▼4.29 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 91.70 ▼6.79 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 38.41 ▲0.86 |
WP-Odesk /wp-admin/admin.php?page=wp-odesk-main | 3.30 | 31.82 |
Odesk Profile /wp-admin/admin.php?page=wp-odesk-profile | 3.30 | 29.87 |
Odesk Affiliates /wp-admin/admin.php?page=wp-odesk-affiliates | 3.27 | 388.73 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Odesks
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲96 | 13.27 ▼1.16 | 4.80 ▲3.02 | 41.12 ▼11.12 |
Dashboard /wp-admin | 2,240 ▲55 | 5.90 ▲1.04 | 99.46 ▼17.72 | 37.76 ▼22.88 |
Posts /wp-admin/edit.php | 2,120 ▲31 | 1.97 ▼0.09 | 40.87 ▲0.93 | 39.23 ▲2.11 |
Add New Post /wp-admin/post-new.php | 1,559 ▲25 | 23.44 ▲0.09 | 595.49 ▼62.88 | 48.82 ▼20.91 |
Media Library /wp-admin/upload.php | 1,419 ▲34 | 4.20 ▲0.03 | 97.47 ▼4.98 | 45.36 ▲0.07 |
WP-Odesk /wp-admin/admin.php?page=wp-odesk-main | 834 | 2.18 | 23.74 | 27.16 |
Odesk Profile /wp-admin/admin.php?page=wp-odesk-profile | 821 | 2.06 | 24.52 | 25.50 |
Odesk Affiliates /wp-admin/admin.php?page=wp-odesk-affiliates | 883 | 2.03 | 23.86 | 28.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/admin.php?page=wp-odesk-affiliates
- > Notice in wp-content/plugins/wp-odesks/wp-odesk.php+118
Trying to get property 'categories' of non-object
- > GET request to /wp-admin/admin.php?page=wp-odesk-affiliates
- > Notice in wp-content/plugins/wp-odesks/wp-odesk.php+118
Trying to get property 'category' of non-object
- > GET request to /wp-admin/admin.php?page=wp-odesk-affiliates
- > Warning in wp-content/plugins/wp-odesks/wp-odesk.php+118
Invalid argument supplied for foreach()
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-odesks/wp-odesk.php:40
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: odesk, odesk affiliate, odesk profile, odesk jobs, odesk contractors
wp-odesks/wp-odesk.php 85% from 13 tests
The principal PHP file in "WP Odesks" v. 0.1 is loaded by WordPress automatically on each request
The following require your attention:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 226 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("wp-odesks.php" instead of "wp-odesk.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected593 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 119 | 35 | 554 |
JavaScript | 1 | 1 | 1 | 38 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 22 | |
▷ Named functions | 22 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin