82% web-service-all-in-one

Code Review | web service all in one

WordPress plugin web service all in one scored 82% from 54 tests.

About plugin

  • Plugin page: web-service-all-i...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-5.0
  • WordPress version: 5.8.1
  • First release: May 28, 2020
  • Latest release: Jun 7, 2020
  • Number of updates: 4
  • Update frequency: every 2.5 days
  • Top authors: mamurjor (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 167 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.39MB] [CPU: ▼133.51ms] Passed 4 tests

Server-side resources used by web service all in one
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.15 ▲0.4339.07 ▲10.72
Dashboard /wp-admin3.45 ▲0.3952.24 ▲7.80
Posts /wp-admin/edit.php3.50 ▲0.3947.54 ▲2.42
Add New Post /wp-admin/post-new.php6.32 ▲0.89100.37 ▼554.99
Media Library /wp-admin/upload.php3.33 ▲0.3336.42 ▲10.73
All mamurjorteam /wp-admin/edit.php?post_type=mamurjorteam3.3737.25
All mamurjorlearn /wp-admin/edit.php?post_type=mamurjorlearn3.3735.24
All mamurjorabout /wp-admin/edit.php?post_type=mamurjorabout3.3733.85
Add New /wp-admin/post-new.php?post_type=mamurjorcourse6.3292.19
Add New /wp-admin/post-new.php?post_type=mamurjorpackage6.3192.53
All mamurjorpackage /wp-admin/edit.php?post_type=mamurjorpackage3.3734.56
All mamurjorcourse /wp-admin/edit.php?post_type=mamurjorcourse3.3734.47
All mamurjorfeedback /wp-admin/edit.php?post_type=mamurjorfeedback3.3734.59
Add New /wp-admin/post-new.php?post_type=homeslider3.4148.18
All homeslider /wp-admin/edit.php?post_type=homeslider3.3743.18

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 29 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by web service all in one
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,065 ▲46916.32 ▲0.3313.30 ▲3.1646.99 ▼4.98
Dashboard /wp-admin3,219 ▲2886.17 ▲0.02161.30 ▲10.07111.14 ▲4.09
Posts /wp-admin/edit.php2,988 ▲2492.76 ▲0.0569.82 ▲4.3782.34 ▼8.07
Add New Post /wp-admin/post-new.php1,665 ▲6118.59 ▼0.16385.78 ▼22.59106.43 ▼0.97
Media Library /wp-admin/upload.php2,056 ▲2344.95 ▼0.07153.87 ▼16.90120.66 ▼0.20
All mamurjorteam /wp-admin/edit.php?post_type=mamurjorteam1,6552.6567.3071.49
All mamurjorlearn /wp-admin/edit.php?post_type=mamurjorlearn1,6552.6563.9673.97
All mamurjorabout /wp-admin/edit.php?post_type=mamurjorabout1,6552.6768.4674.40
Add New /wp-admin/post-new.php?post_type=mamurjorcourse5,85716.71471.96125.32
Add New /wp-admin/post-new.php?post_type=mamurjorpackage5,81916.80413.58107.91
All mamurjorpackage /wp-admin/edit.php?post_type=mamurjorpackage1,6552.6565.3569.68
All mamurjorcourse /wp-admin/edit.php?post_type=mamurjorcourse1,6552.6660.1471.12
All mamurjorfeedback /wp-admin/edit.php?post_type=mamurjorfeedback1,6552.6663.4571.20
Add New /wp-admin/post-new.php?post_type=homeslider2,4754.65106.7487.44
All homeslider /wp-admin/edit.php?post_type=homeslider1,6552.6674.2373.93

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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 take a closer look at the following
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/web-service-all-in-one/public/partials/webserviceallinone-public-display.php
    • > /wp-content/plugins/web-service-all-in-one/admin/partials/webserviceallinone-admin-display.php
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/web-service-all-in-one/admin/feedback/mamurjorfeedback.php:60
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/web-service-all-in-one/admin/about/mamurjorabout.php:67

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
    • > GET request to /wp-admin/edit.php?post_type=mamurjorpackage
    • > Intervention (severe) in unknown
    /wp-admin/post-new.php?post_type=mamurjorpackage - Blocked attempt to show a 'beforeunload' confirmation panel for a frame that never had a user gesture since its load. https://www.chromestatus.com/feature/5082396709879808

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Screenshots: Add images for these screenshots: #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is stored in the /assets directory.), #2 (This is the second screen shot)
The official readme.txt is a good inspiration

web-service-all-in-one/webserviceallinone.php 85% from 13 tests

The main PHP file in "web service all in one" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("web-service-all-in-one.php" instead of "webserviceallinone.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected1,136 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP193815431,130
JavaScript24546
CSS2080

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity1.43
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.13
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods23
▷ Static methods28.70%
▷ Public methods1878.26%
▷ Protected methods00.00%
▷ Private methods521.74%
Functions34
▷ Named functions34100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin