10% orbis

Code Review | Orbis

WordPress plugin Orbis scored 10% from 54 tests.

About plugin

  • Plugin page: orbis
  • Plugin version: 1.3.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.3.1
  • WordPress version: 6.3.1
  • First release: Nov 12, 2013
  • Latest release: Oct 9, 2015
  • Number of updates: 27
  • Update frequency: every 40.8 days
  • Top authors: remcotolsma (74.07%)pronamic (29.63%)

Code review

54 tests

User reviews

6 reviews

Install metrics

50+ active / 20,019 total downloads

Benchmarks

Plugin footprint 23% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/orbis/includes/log.php+46
    Methods with the same name as their class will not be constructors in a future version of PHP; Orbis_Log_Widget has a deprecated constructor

Server metrics [RAM: ▼1.77MB] [CPU: ▼53.86ms] Passed 4 tests

A check of server-side resources used by Orbis
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.21 ▼1.255.27 ▼37.59
Dashboard /wp-admin2.23 ▼1.075.65 ▼45.32
Posts /wp-admin/edit.php2.23 ▼1.126.88 ▼42.76
Add New Post /wp-admin/post-new.php2.23 ▼3.655.97 ▼89.76
Media Library /wp-admin/upload.php2.23 ▼1.006.13 ▼27.74
Orbis /wp-admin/admin.php?page=orbis2.235.63
Add New /wp-admin/post-new.php?post_type=orbis_person2.237.23
All Projects /wp-admin/edit.php?post_type=orbis_project2.236.87
Categories /wp-admin/edit-tags.php?taxonomy=orbis_company_category&post_type=orbis_company2.237.24
Stats /wp-admin/admin.php?page=orbis_stats2.236.62
Add New /wp-admin/post-new.php?post_type=orbis_company2.237.40
Plugins /wp-admin/admin.php?page=orbis_plugins2.236.73
All Persons /wp-admin/edit.php?post_type=orbis_person2.236.82
Categories /wp-admin/edit-tags.php?taxonomy=orbis_project_category&post_type=orbis_project2.236.29
Categories /wp-admin/edit-tags.php?taxonomy=orbis_person_category&post_type=orbis_person2.238.63

Server storage [IO: ▲1.83MB] [DB: ▲0.09MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 180 new files
Database: 3 new tables, 8 new options
New tables
wp_orbis_companies
wp_orbis_projects
wp_orbis_log
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
orbis_db_version
widget_orbis-log

Browser metrics Passed 4 tests

Checking browser requirements for Orbis
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,088 ▲35314.22 ▼0.167.28 ▲5.6741.41 ▼2.73
Dashboard /wp-admin2,359 ▲1715.28 ▲0.43102.28 ▲4.1476.09 ▲30.11
Posts /wp-admin/edit.php2,237 ▲1482.33 ▲0.3235.29 ▼3.5531.86 ▲0.24
Add New Post /wp-admin/post-new.php1,796 ▲26322.86 ▲4.54699.93 ▲84.5335.92 ▼31.06
Media Library /wp-admin/upload.php1,533 ▲1484.60 ▲0.40101.94 ▲5.0796.60 ▲49.68
Orbis /wp-admin/admin.php?page=orbis1,0092.1327.0627.86
Add New /wp-admin/post-new.php?post_type=orbis_person2,9148.12189.91152.53
All Projects /wp-admin/edit.php?post_type=orbis_project1,2822.3234.1636.13
Categories /wp-admin/edit-tags.php?taxonomy=orbis_company_category&post_type=orbis_company1,4262.3233.0939.06
Stats /wp-admin/admin.php?page=orbis_stats1,0902.2527.4030.55
Add New /wp-admin/post-new.php?post_type=orbis_company2,9768.03186.79132.89
Plugins /wp-admin/admin.php?page=orbis_plugins1,0242.2139.0734.26
All Persons /wp-admin/edit.php?post_type=orbis_person1,2612.2932.4335.67
Categories /wp-admin/edit-tags.php?taxonomy=orbis_project_category&post_type=orbis_project1,4262.2030.0331.94
Categories /wp-admin/edit-tags.php?taxonomy=orbis_person_category&post_type=orbis_person1,4232.2034.1636.05

Uninstaller [IO: ▲0.00MB] [DB: ▲0.09MB] 25% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/orbis/includes/log.php+46
    Methods with the same name as their class will not be constructors in a future version of PHP; Orbis_Log_Widget has a deprecated constructor
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_orbis_log
  • Zombie WordPress options detected upon uninstall: 7 options
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_orbis-log
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
  • 12 occurences, only the last one shown
    • > GET request to /wp-admin/edit-tags.php?taxonomy=orbis_person_category&post_type=orbis_person
    • > Deprecated in wp-content/plugins/orbis/includes/log.php+46
    Methods with the same name as their class will not be constructors in a future version of PHP; Orbis_Log_Widget has a deprecated constructor
  • 12 occurences, only the last one shown
    • > GET request to /wp-admin/edit-tags.php?taxonomy=orbis_person_category&post_type=orbis_person
    • > Warning in wp-content/plugins/orbis/classes/orbis-plugin-manager.php+274
    Declaration of Orbis_Empty_Upgrader_Skin::feedback($string) should be compatible with WP_Upgrader_Skin::feedback($feedback, ...$args)
  • 10 occurences, only the last one shown
    • > GET request to /wp-admin/edit-tags.php?taxonomy=orbis_person_category&post_type=orbis_person
    • > User notice in wp-includes/functions.php+5905
    Function add_menu_page was called incorrectly. The seventh parameter passed to add_menu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 6.0.0.)
    • > GET request to /wp-admin/admin.php?page=orbis_stats
    • > Notice in wp-content/plugins/orbis/admin/page-stats.php+25
    Trying to get property 'number_registrations' of non-object
    • > GET request to /wp-admin/admin.php?page=orbis_stats
    • > Notice in wp-content/plugins/orbis/admin/page-stats.php+27
    Trying to get property 'total_seconds' of non-object

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 37× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHwp-admin/includes/class-wp-upgrader.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/orbis/classes/orbis-plugin-manager.php on line 195
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/orbis/templates/emails/email-header.php:25
    • > PHP Warning
      Use of undefined constant DB_PASSWORD - assumed 'DB_PASSWORD' (this will throw an Error in a future version of PHP) in wp-content/plugins/orbis/templates/projects.php on line 6
    • > PHP Notice
      Undefined variable: pdo in wp-content/plugins/orbis/templates/projects-completed-not-invoiced.php on line 52
    • > PHP Warning
      Use of undefined constant DB_HOST - assumed 'DB_HOST' (this will throw an Error in a future version of PHP) in wp-content/plugins/orbis/templates/projects.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/orbis/templates/projects-to-invoice.php:59
    • > PHP Fatal error
      Uncaught PDOException: PDO::__construct(): php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in wp-content/plugins/orbis/templates/projects.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/orbis/templates/projects-without-agreement.php:10
    • > PHP Warning
      Use of undefined constant DB_NAME - assumed 'DB_NAME' (this will throw an Error in a future version of PHP) in wp-content/plugins/orbis/templates/projects.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/orbis/includes/companies.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: orbis, intranet

orbis/orbis.php Passed 13 tests

"Orbis" version 1.3.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
124 characters long description:
Orbis is a powerful, extendable plugin to boost up your business. Project Management, Customer Relation Management & More...

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin22,377 lines of code in 157 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript883,39912,86617,365
PHP418806843,239
CSS192162131,199
PO File1317490430
SQL819144

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity8.10
▷ Minimum class complexity1.00
▷ Maximum class complexity19.00
Average method complexity1.97
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods73
▷ Static methods34.11%
▷ Public methods7298.63%
▷ Protected methods00.00%
▷ Private methods11.37%
Functions61
▷ Named functions61100.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
17 compressed PNG files occupy 0.03MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
jquery-ui/themes/base/images/ui-bg_glass_65_ffffff_1x400.png0.10KB0.10KB▼ 5.71%
jquery-ui/themes/base/images/ui-bg_glass_95_fef1ec_1x400.png0.12KB0.14KB0.00%
images/icon-32x32.png1.13KB0.61KB▼ 46.06%
jquery-ui/themes/base/images/ui-icons_2e83ff_256x240.png4.27KB4.11KB▼ 3.78%
jquery-ui/themes/base/images/ui-bg_glass_75_e6e6e6_1x400.png0.11KB0.14KB0.00%