10% ghostbirdwp

Code Review | Ghostbird WP (Beta)

WordPress plugin Ghostbird WP (Beta) scored 10% from 54 tests.

About plugin

  • Plugin page: ghostbirdwp
  • Plugin version: 1.0.6
  • PHP compatiblity: 5.6.8+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-5.3
  • WordPress version: 5.9.2
  • First release: Jul 30, 2019
  • Latest release: Dec 4, 2020
  • Number of updates: 40
  • Update frequency: every 12.3 days
  • Top authors: nawawijamili (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

10+ active / 897 total downloads

Benchmarks

Plugin footprint 75% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/ghostbirdwp/library/class-gbwp-funcs.php+2170
    Array and string offset access syntax with curly braces is deprecated

Server metrics [RAM: ▲0.41MB] [CPU: ▼388.54ms] Passed 4 tests

This is a short check of server-side resources used by Ghostbird WP (Beta)
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.89 ▲0.3866.77 ▲15.51
Posts /wp-admin/edit.php4.13 ▲0.5050.70 ▲12.20
Add New Post /wp-admin/post-new.php7.54 ▲0.57101.63 ▼1,179.20
Media Library /wp-admin/upload.php3.66 ▲0.3626.82 ▲1.39
Ghostbird WP /wp-admin/options-general.php?page=ghostbirdwp3.9646.00

Server storage [IO: ▲1.70MB] [DB: ▲0.01MB] 67% from 3 tests

Analyzing filesystem and database footprints of this plugin
Just a few items left to fix
  • The plugin illegally modified 28 files (134.30KB) outside of "wp-content/plugins/ghostbirdwp/" and "wp-content/uploads/"
    • (new file) wp-content/advanced-cache.php
    • (new file) wp-content/cache/ghostbirdwp/assets/index.html
    • (new file) wp-content/cache/ghostbirdwp/buffer/.htaccess
    • (new file) wp-content/cache/ghostbirdwp/buffer/bf-4c9569430c43-b833b9f10a83.php
    • (new file) wp-content/cache/ghostbirdwp/.htaccess
    • (new file) wp-content/cache/ghostbirdwp/buffer/index.html
    • (modified) .htaccess
    • (new file) wp-content/cache/ghostbirdwp/buffer/bf-51c1edf42508-ff62d1ceb3ea.php
    • (modified) wp-config.php
    • (new file) wp-content/cache/ghostbirdwp/assets/.htaccess
    • ...
Filesystem: 130 new files
Database: no new tables, 1 new option
New WordPress options
ghostbirdwp_settings

Browser metrics Passed 4 tests

Checking browser requirements for Ghostbird WP (Beta)
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,885 ▼83715.61 ▼0.368.48 ▲2.882.64 ▲0.14
Dashboard /wp-admin2,077 ▼7845.93 ▼0.2286.93 ▼53.94155.71 ▼8.68
Posts /wp-admin/edit.php2,060 ▼6312.68 ▼0.5530.39 ▼34.72144.28 ▼3.98
Add New Post /wp-admin/post-new.php1,738 ▼4322.31 ▼0.29441.19 ▼16.44163.13 ▲9.27
Media Library /wp-admin/upload.php1,404 ▼2945.37 ▼0.1787.57 ▼60.87208.81 ▲19.57
Ghostbird WP /wp-admin/options-general.php?page=ghostbirdwp2,7652.6657.44225.26

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
Uninstall script ran successfully

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 no errors were found, this is by no means 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
Please fix the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/ghostbirdwp/files/firewall-passcode.php
  • 28× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/ghostbirdwp/partials/plugin-info.php:2
    • > PHP Notice
      Undefined variable: passcode in wp-content/plugins/ghostbirdwp/files/firewall-passcode.php on line 97
    • > PHP Notice
      Trying to get property 'qsname' of non-object in wp-content/plugins/ghostbirdwp/files/firewall-passcode.php on line 102
    • > PHP Notice
      Undefined variable: passcode in wp-content/plugins/ghostbirdwp/files/firewall-passcode.php on line 97
    • > PHP Fatal error
      Uncaught Error: Class 'MatthiasMullie\\Minify\\Exceptions\\BasicException' not found in wp-content/plugins/ghostbirdwp/library/optimize/minify/src/Exceptions/FileImportException.php:19
    • > PHP Notice
      Undefined variable: passcode in wp-content/plugins/ghostbirdwp/files/firewall-passcode.php on line 93
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/ghostbirdwp/partials/stale-cache.php:2
    • > PHP Fatal error
      Uncaught Error: Interface 'MatthiasMullie\\PathConverter\\ConverterInterface' not found in wp-content/plugins/ghostbirdwp/library/optimize/path-converter/Converter.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'MatthiasMullie\\Minify\\Minify' not found in wp-content/plugins/ghostbirdwp/library/optimize/minify/src/JS.php:24
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/ghostbirdwp/partials/plugin-actions.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 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
7 plugin tags: optimization, cache, badbot, performance, firewall...

ghostbirdwp/ghostbirdwp.php Passed 13 tests

The main file in "Ghostbird WP (Beta)" v. 1.0.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
112 characters long description:
The WordPress performance and security plugin that accelerates website and prevent from common security threats.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin16,390 lines of code in 94 files:
LanguageFilesBlank linesComment linesLines of code
PHP853,6836,61814,883
CSS322461,202
JavaScript26631275
SVG30029
HTML1001

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity61.54
▷ Minimum class complexity1.00
▷ Maximum class complexity479.00
Average method complexity5.08
▷ Minimum method complexity1.00
▷ Maximum method complexity96.00
Code structure
Namespaces6
Interfaces1
Traits0
Classes45
▷ Abstract classes36.67%
▷ Concrete classes4293.33%
▷ Final classes2969.05%
Methods688
▷ Static methods9413.66%
▷ Public methods50373.11%
▷ Protected methods466.69%
▷ Private methods13920.20%
Functions40
▷ Named functions25.00%
▷ Anonymous functions3895.00%
Constants29
▷ Global constants1965.52%
▷ Class constants1034.48%
▷ Public constants10100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected