88% botamp

Code Review | Botamp

WordPress plugin Botamp scored 88% from 54 tests.

About plugin

  • Plugin page: botamp
  • Plugin version: 1.3.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-4.6
  • WordPress version: 5.8.1
  • First release: Oct 24, 2016
  • Latest release: May 4, 2017
  • Number of updates: 47
  • Update frequency: every 6.1 days
  • Top authors: ousmanedev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 656 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.61MB] [CPU: ▼157.06ms] Passed 4 tests

Server-side resources used by Botamp
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.45 ▲0.6236.70 ▲2.92
Dashboard /wp-admin3.67 ▲0.6250.37 ▲7.39
Posts /wp-admin/edit.php3.73 ▲0.6247.41 ▲1.78
Add New Post /wp-admin/post-new.php6.04 ▲0.61100.72 ▼620.49
Media Library /wp-admin/upload.php3.62 ▲0.6129.68 ▼12.45
Botamp /wp-admin/options-general.php?page=botamp3.5933.27

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 391 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Botamp
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,842 ▲24616.26 ▲0.7316.78 ▲4.6245.64 ▲0.71
Dashboard /wp-admin3,003 ▲696.00 ▲0.09144.27 ▼6.84103.77 ▼9.86
Posts /wp-admin/edit.php2,770 ▲312.71 ▼0.0166.38 ▼31.0384.41 ▼0.71
Add New Post /wp-admin/post-new.php1,637 ▼4621.44 ▲5.54289.93 ▼101.10101.06 ▼12.04
Media Library /wp-admin/upload.php1,838 ▲315.03 ▲0.02155.95 ▼0.15116.61 ▼1.13
Botamp /wp-admin/options-general.php?page=botamp1,0882.3355.3879.62

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/botamp/public/partials/botamp-public-display.php
  • 191× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Http\\Message\\Encoding\\FilteredStream' not found in wp-content/plugins/botamp/vendor/php-http/message/src/Encoding/DeflateStream.php:12
    • > PHP Fatal error
      Uncaught Error: Interface 'Http\\Discovery\\Strategy\\DiscoveryStrategy' not found in wp-content/plugins/botamp/vendor/php-http/discovery/src/Strategy/PuliBetaStrategy.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Exception\\BadResponseException' not found in wp-content/plugins/botamp/vendor/guzzlehttp/guzzle/src/Exception/ClientException.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Exception\\RequestException' not found in wp-content/plugins/botamp/vendor/guzzlehttp/guzzle/src/Exception/ConnectException.php:11
    • > PHP Fatal error
      require(): Failed opening required 'wp-content/plugins/botamp/vendor/botamp/botamp-php/tests/Botamp/../../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/botamp/vendor/botamp/botamp-php/tests/Botamp/bootstrap.php on line 3
    • > PHP Fatal error
      Uncaught Error: Interface 'Http\\Client\\Common\\Plugin' not found in wp-content/plugins/botamp/vendor/php-http/client-common/src/Plugin/ErrorPlugin.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'Http\\Discovery\\ClassDiscovery' not found in wp-content/plugins/botamp/vendor/php-http/discovery/src/MessageFactoryDiscovery.php:13
    • > PHP Fatal error
      Uncaught Error: Interface 'Http\\Discovery\\Exception' not found in wp-content/plugins/botamp/vendor/php-http/discovery/src/Exception/NotFoundException.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/botamp/admin/partials/botamp-admin-display.php:23
    • > PHP Warning
      Use of undefined constant get_post_type_name - assumed 'get_post_type_name' (this will throw an Error in a future version of PHP) in wp-content/plugins/botamp/admin/partials/botamp-admin-display-import.php on line 5

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)
No browser issues were found


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
The official readme.txt might help

botamp/botamp.php Passed 13 tests

"Botamp" version 1.3.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
93 characters long description:
Botamp plugin for Wordpress. The easiest way to sync your WordPress site content with Botamp.

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
Good job! No executable or dangerous file extensions detected24,229 lines of code in 358 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity6.20
▷ Minimum class complexity1.00
▷ Maximum class complexity75.00
Average method complexity1.88
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
▷ Abstract classes31.30%
▷ Concrete classes22898.70%
▷ Final classes6428.07%
▷ Static methods985.95%
▷ Public methods1,44887.92%
▷ Protected methods362.19%
▷ Private methods1639.90%
▷ Named functions6420.85%
▷ Anonymous functions24379.15%
▷ Global constants00.00%
▷ Class constants50100.00%
▷ Public constants50100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.21MB with 0.14MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
settings.png67.59KB17.32KB▼ 74.37%
order_notifications.png145.72KB53.23KB▼ 63.47%