78% wp-odesks

Code Review | WP Odesks

WordPress plugin WP Odesks scored 78% from 54 tests.

About plugin

  • Plugin page: wp-odesks
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.5
  • WordPress version: 6.3.1
  • First release: May 27, 2013
  • Latest release: May 28, 2013
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: reygcalantaol (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 810 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1040.68 ▲0.82
Dashboard /wp-admin3.41 ▲0.1145.84 ▼1.44
Posts /wp-admin/edit.php3.52 ▲0.1746.94 ▼4.29
Add New Post /wp-admin/post-new.php5.99 ▲0.1091.70 ▼6.79
Media Library /wp-admin/upload.php3.33 ▲0.1038.41 ▲0.86
WP-Odesk /wp-admin/admin.php?page=wp-odesk-main3.3031.82
Odesk Profile /wp-admin/admin.php?page=wp-odesk-profile3.3029.87
Odesk Affiliates /wp-admin/admin.php?page=wp-odesk-affiliates3.27388.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲9613.27 ▼1.164.80 ▲3.0241.12 ▼11.12
Dashboard /wp-admin2,240 ▲555.90 ▲1.0499.46 ▼17.7237.76 ▼22.88
Posts /wp-admin/edit.php2,120 ▲311.97 ▼0.0940.87 ▲0.9339.23 ▲2.11
Add New Post /wp-admin/post-new.php1,559 ▲2523.44 ▲0.09595.49 ▼62.8848.82 ▼20.91
Media Library /wp-admin/upload.php1,419 ▲344.20 ▲0.0397.47 ▼4.9845.36 ▲0.07
WP-Odesk /wp-admin/admin.php?page=wp-odesk-main8342.1823.7427.16
Odesk Profile /wp-admin/admin.php?page=wp-odesk-profile8212.0624.5225.50
Odesk Affiliates /wp-admin/admin.php?page=wp-odesk-affiliates8832.0323.8628.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP111935554
JavaScript11138
CSS1001

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 code0.14
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions22
▷ Named functions22100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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