84% wpsoap

Code Review | WPSOAP

WordPress plugin WPSOAP scored84%from 54 tests.

About plugin

  • Plugin page: wpsoap
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9
  • WordPress version: 6.3.1
  • First release: Sep 30, 2016
  • Latest release: Nov 20, 2017
  • Number of updates: 9
  • Update frequency: every 46.3 days
  • Top authors: lpkapil008 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /4,552 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.07MB] [CPU: ▼3.59ms] Passed 4 tests

Server-side resources used by WPSOAP
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0851.12 ▲3.89
Dashboard /wp-admin3.38 ▲0.0352.37 ▼15.47
Posts /wp-admin/edit.php3.47 ▲0.1258.26 ▲8.12
Add New Post /wp-admin/post-new.php5.98 ▲0.0988.70 ▼10.89
Media Library /wp-admin/upload.php3.30 ▲0.0748.81 ▲9.41

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for WPSOAP
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,837 ▲7614.34 ▼0.221.91 ▲0.3944.62 ▲2.29
Dashboard /wp-admin2,215 ▲384.85 ▼0.7692.63 ▲1.8344.28 ▼1.22
Posts /wp-admin/edit.php2,123 ▲262.23 ▲0.2533.84 ▼4.1834.94 ▼2.35
Add New Post /wp-admin/post-new.php1,699 ▲17322.56 ▼0.97661.60 ▼43.2757.48 ▼3.89
Media Library /wp-admin/upload.php1,417 ▲204.22 ▲0.06103.16 ▲0.0247.48 ▲1.90

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpsoap/WpSoap.php:58
    • > PHP Fatal error
      Uncaught Error: Class 'SoapClient' not found in wp-content/plugins/wpsoap/includes/admin.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: api, soap, webservice, wordpress

wpsoap/WpSoap.php 92% from 13 tests

This is the main PHP file of "WPSOAP" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wpsoap.php" instead of "WpSoap.php")

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 plugin383 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP261118214
XML120142
CSS27825
JavaScript1052

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity25.00
▷ Minimum class complexity25.00
▷ Maximum class complexity25.00
Average method complexity2.60
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
PNG images were not found in this plugin