10% all-in-one-services

Code Review | My Services

WordPress plugin My Services scored 10% from 54 tests.

About plugin

  • Plugin page: all-in-one-services
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Oct 7, 2020
  • Latest release: Oct 7, 2020
  • Number of updates: 5
  • Update frequency: every 1.0 days
  • Top authors: shankardev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 399 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/all-in-one-services/wp-my-services.php+22
    define(): Declaration of case-insensitive constants is deprecated

Server metrics [RAM: ▼1.96MB] [CPU: ▼52.74ms] Passed 4 tests

Server-side resources used by My Services
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.435.22 ▼34.87
Dashboard /wp-admin2.05 ▼1.2610.32 ▼36.87
Posts /wp-admin/edit.php2.05 ▼1.317.08 ▼41.00
Add New Post /wp-admin/post-new.php2.05 ▼3.845.34 ▼98.22
Media Library /wp-admin/upload.php2.05 ▼1.185.87 ▼29.44
Add Services /wp-admin/admin.php?page=add-services2.055.93
/wp-admin/admin.php?page=edit-services2.055.69
Add Clients /wp-admin/admin.php?page=add-clients2.055.22
Manage Access Users /wp-admin/admin.php?page=manage-access-users2.055.91
Service Tracker /wp-admin/admin.php?page=service-tracker2.054.64
View Services /wp-admin/admin.php?page=my-aio-services2.056.02
Manage Clients /wp-admin/admin.php?page=manage-clients2.055.18
Add Access Users /wp-admin/admin.php?page=add-access-users2.055.22

Server storage [IO: ▲1.62MB] [DB: ▲0.34MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 25 new files
Database: 4 new tables, 7 new options
New tables
wp_custom_my_serviceaccessible_users
wp_custom_my_services_data
wp_custom_my_serviceprivider_client
wp_custom_my_service_access
New WordPress options
can_compress_scripts
widget_theysaidso_widget
my_service_page_id
widget_recent-comments
db_upgraded
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for My Services
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,871 ▲13613.26 ▼1.112.15 ▲0.2844.92 ▼5.35
Dashboard /wp-admin2,255 ▲675.87 ▼0.0299.96 ▼4.7138.31 ▼8.36
Posts /wp-admin/edit.php2,135 ▲462.04 ▲0.0440.56 ▲1.5335.77 ▲0.64
Add New Post /wp-admin/post-new.php1,576 ▲4223.35 ▲0.19677.43 ▲98.3054.20 ▲0.83
Media Library /wp-admin/upload.php1,431 ▲404.23 ▲0.0796.81 ▼2.2442.71 ▲0.35
Add Services /wp-admin/admin.php?page=add-services1,1923.6854.1952.20
/wp-admin/admin.php?page=edit-services1,1993.6059.9730.02
Add Clients /wp-admin/admin.php?page=add-clients9082.2430.3130.63
Manage Access Users /wp-admin/admin.php?page=manage-access-users9982.7743.0742.48
Service Tracker /wp-admin/admin.php?page=service-tracker9972.7640.7033.38
View Services /wp-admin/admin.php?page=my-aio-services9982.7842.6434.91
Manage Clients /wp-admin/admin.php?page=manage-clients9972.7241.4233.00
Add Access Users /wp-admin/admin.php?page=add-access-users9232.2728.9029.23

Uninstaller [IO: ▲0.00MB] [DB: ▲0.33MB] 50% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/all-in-one-services/wp-my-services.php+22
    define(): Declaration of case-insensitive constants is deprecated
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
  • 8 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=add-access-users
    • > Deprecated in wp-content/plugins/all-in-one-services/wp-my-services.php+22
    define(): Declaration of case-insensitive constants is deprecated
  • 8 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=add-access-users
    • > User notice in wp-includes/functions.php+5905
    Function WP_Scripts::localize was called incorrectly. The $l10n parameter must be an array. To pass arbitrary data to scripts, use the wp_add_inline_script() function instead. Please see Debugging in WordPress for more information. (This message was added in version 5.7.0.)
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=manage-clients
    • > User notice in wp-includes/functions.php+5905
    Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=manage-clients
    • > User notice in wp-includes/functions.php+5905
    Function wpdb::prepare was called incorrectly. The query does not contain the correct number of placeholders (0) for the number of arguments passed (1). Please see Debugging in WordPress for more information. (This message was added in version 4.8.3.)
  • 7 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=edit-services
    • > Notice in wp-content/plugins/all-in-one-services/views/edit-services.php+94
    Trying to access array offset on value of type null
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=edit-services
    • > Notice in wp-content/plugins/all-in-one-services/views/edit-services.php+138
    Trying to access array offset on value of type bool

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=manage-clients
    • > Network (severe)
    wp-content/plugins/all-in-one-services/assets/images/sort_both.png - Failed to load resource: the server responded with a status of 404 (Not Found)
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=manage-clients
    • > Network (severe)
    wp-content/plugins/all-in-one-services/assets/images/sort_asc.png - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed: The official readme.txt is a good inspiration

all-in-one-services/wp-my-services.php 77% from 13 tests

The main PHP script in "My Services" version 1.0.0 is automatically included on every request by WordPress
It is important to fix the following:
  • Domain Path: The domain path folder does not exist ("/languages/")
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("all-in-one-services.php" instead of "wp-my-services.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected1,965 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
PHP11563941,258
JavaScript69863584
CSS52739123

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
Functions29
▷ Named functions29100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin