84% servicepress

Code Review | ServicePress: WordPress and ServiceNow Integration by Harmedia Studios

WordPress plugin ServicePress: WordPress and ServiceNow Integration by Harmedia Studios scored 84% from 54 tests.

About plugin

  • Plugin page: servicepress
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.2
  • WordPress version: 6.3.1
  • First release: May 23, 2023
  • Latest release: May 24, 2023
  • Number of updates: 3
  • Update frequency: every 51.7 days
  • Top authors: harmediastudios (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 91 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.69MB] [CPU: ▼16.15ms] Passed 4 tests

Analyzing server-side resources used by ServicePress: WordPress and ServiceNow Integration by Harmedia Studios
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.73 ▼2.35
Dashboard /wp-admin3.31 ▲0.0147.94 ▼5.41
Posts /wp-admin/edit.php3.36 ▲0.0044.04 ▼5.19
Add New Post /wp-admin/post-new.php3.12 ▼2.7636.86 ▼51.65
Media Library /wp-admin/upload.php3.23 ▲0.0036.19 ▲4.05

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

ServicePress: WordPress and ServiceNow Integration by Harmedia Studios: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.32 ▼1.061.79 ▼0.3043.94 ▲0.02
Dashboard /wp-admin2,203 ▲155.80 ▲0.92100.58 ▼14.2037.46 ▼10.48
Posts /wp-admin/edit.php2,086 ▼32.00 ▼0.0134.36 ▼5.9036.10 ▲2.21
Add New Post /wp-admin/post-new.php1,537 ▲1723.28 ▲0.16639.73 ▼29.8256.64 ▲3.49
Media Library /wp-admin/upload.php1,388 ▲34.21 ▼0.0495.27 ▼4.4141.78 ▼1.42

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 fix the following items
  • 6× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/servicepress/servicepress.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/servicepress/core/spnow_register_sites.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/servicepress/core/spnow_filter_application_password.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/servicepress/core/spnow_register_user_roles.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/servicepress/core/spnow_register_site_version.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/servicepress/core/spnow_register_user_email.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
1 plugin tags: servicepress

servicepress/servicepress.php 92% from 13 tests

"ServicePress: WordPress and ServiceNow Integration by Harmedia Studios" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 324 characters long)

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
There were no executable files found in this plugin107 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP6464107

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.10
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants10100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin