10% wp-bitbucket

Code Review | WP Bitbucket

WordPress plugin WP Bitbucket scored 10% from 54 tests.

About plugin

  • Plugin page: wp-bitbucket
  • Plugin version: 0.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.5.1
  • WordPress version: 6.3.1
  • First release: Jun 29, 2013
  • Latest release: Jul 22, 2013
  • Number of updates: 4
  • Update frequency: every 7.8 days
  • Top authors: grosbouff (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,137 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/wp-bitbucket/_inc/lib/phpQuery/phpQuery/phpQueryObject.php+1055
    Array and string offset access syntax with curly braces is deprecated

Server metrics [RAM: ▲0.05MB] [CPU: ▼2.79ms] Passed 4 tests

Server-side resources used by WP Bitbucket
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0940.32 ▼2.13
Dashboard /wp-admin3.39 ▲0.0945.86 ▼1.21
Posts /wp-admin/edit.php3.44 ▲0.0943.92 ▼1.57
Add New Post /wp-admin/post-new.php5.91 ▲0.0290.25 ▼6.25
Media Library /wp-admin/upload.php3.25 ▲0.0233.18 ▼0.09

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 85 new files
Database: no new tables, 7 new options
New WordPress options
wp-bitbucket/wp-bitbucket.php-db-version
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for WP Bitbucket
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.30 ▼1.251.75 ▲0.0143.37 ▼5.32
Dashboard /wp-admin2,206 ▲214.82 ▼0.02102.31 ▲0.1538.91 ▼8.32
Posts /wp-admin/edit.php2,086 ▼61.99 ▼0.0536.64 ▼6.8834.00 ▼1.71
Add New Post /wp-admin/post-new.php1,528 ▼1118.35 ▼5.02616.39 ▼5.1254.14 ▲0.79
Media Library /wp-admin/upload.php1,388 ▼34.21 ▼0.0194.02 ▼5.9543.46 ▲0.75

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • wp-bitbucket/wp-bitbucket.php-db-version

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 122× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Warning
      require_once(Zend/Validate/Hostname/Interface.php): failed to open stream: No such file or directory in wp-content/plugins/wp-bitbucket/_inc/lib/phpQuery/phpQuery/Zend/Validate/Hostname/Se.php on line 27
    • > PHP Fatal error
      require_once(): Failed opening required 'Zend/Validate/Abstract.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-bitbucket/_inc/lib/phpQuery/phpQuery/Zend/Validate/Barcode.php on line 27
    • > PHP Fatal error
      require_once(): Failed opening required 'Zend/Loader.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-bitbucket/_inc/lib/phpQuery/phpQuery/Zend/Http/Client.php on line 27
    • > PHP Fatal error
      require_once(): Failed opening required 'Zend/Validate/Abstract.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-bitbucket/_inc/lib/phpQuery/phpQuery/Zend/Validate/Alpha.php on line 27
    • > PHP Fatal error
      require_once(): Failed opening required 'Zend/Uri.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-bitbucket/_inc/lib/phpQuery/phpQuery/Zend/Uri/Http.php on line 25
    • > PHP Fatal error
      require_once(): Failed opening required 'Zend/Validate/Abstract.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-bitbucket/_inc/lib/phpQuery/phpQuery/Zend/Validate/File/Size.php on line 25
    • > PHP Fatal error
      require_once(): Failed opening required 'Zend/Exception.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-bitbucket/_inc/lib/phpQuery/phpQuery/Zend/Json/Exception.php on line 25
    • > PHP Fatal error
      require_once(): Failed opening required 'Zend/Validate/Abstract.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-bitbucket/_inc/lib/phpQuery/phpQuery/Zend/Validate/Float.php on line 27
    • > PHP Warning
      require_once(Zend/Validate/Hostname/Interface.php): failed to open stream: No such file or directory in wp-content/plugins/wp-bitbucket/_inc/lib/phpQuery/phpQuery/Zend/Validate/Hostname/De.php on line 27
    • > PHP Notice
      Undefined variable: self in wp-content/plugins/wp-bitbucket/_inc/lib/phpQuery/phpQuery/plugins/Scripts/fix_webroot.php on line 8

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: shortcode, bitbucket

wp-bitbucket/wp-bitbucket.php 92% from 13 tests

The main PHP script in "WP Bitbucket" version 0.2.1 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Domain Path: The domain path folder was not found ("/languages/")

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
Success! There were no dangerous files found in this plugin9,363 lines of code in 84 files:
LanguageFilesBlank linesComment linesLines of code
PHP811,4607,8509,014
CSS34831349

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity23.00
▷ Minimum class complexity1.00
▷ Maximum class complexity555.00
Average method complexity4.05
▷ Minimum method complexity1.00
▷ Maximum method complexity59.00
Code structure
Namespaces0
Interfaces4
Traits0
Classes79
▷ Abstract classes810.13%
▷ Concrete classes7189.87%
▷ Final classes00.00%
Methods612
▷ Static methods14223.20%
▷ Public methods52185.13%
▷ Protected methods8413.73%
▷ Private methods71.14%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants107
▷ Global constants43.74%
▷ Class constants10396.26%
▷ Public constants103100.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
No PNG images were found in this plugin