10% wixiweb-firephp-queries

Code Review | Wixiweb FirePHP Queries

WordPress plugin Wixiweb FirePHP Queries scored 10% from 54 tests.

About plugin

  • Plugin page: wixiweb-firephp-q...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.0-4.6.0
  • WordPress version: 5.9.2
  • First release: May 16, 2015
  • Latest release: Jul 28, 2016
  • Number of updates: 19
  • Update frequency: every 23.1 days
  • Top authors: arnolem (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active / 2,403 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 did not install without errors
    • > Deprecated in wp-content/plugins/wixiweb-firephp-queries/vendor/firephp/FirePHP.class.php+1370
    Array and string offset access syntax with curly braces is deprecated

Server metrics [RAM: ▼1.98MB] [CPU: ▼345.35ms] Passed 4 tests

An overview of server-side resources used by Wixiweb FirePHP Queries
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.39 ▼1.124.84 ▼47.59
Dashboard /wp-admin2.41 ▼1.004.66 ▼28.16
Posts /wp-admin/edit.php2.41 ▼1.234.56 ▼33.10
Add New Post /wp-admin/post-new.php2.41 ▼4.564.71 ▼1,272.56
Media Library /wp-admin/upload.php2.41 ▼0.894.61 ▼27.05

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Wixiweb FirePHP Queries: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲915.88 ▼0.075.72 ▼0.792.18 ▼1.17
Dashboard /wp-admin2,895 ▲376.05 ▼0.15117.02 ▼14.20153.89 ▼10.39
Posts /wp-admin/edit.php2,694 ▲63.24 ▲0.0062.67 ▼1.59135.22 ▼2.35
Add New Post /wp-admin/post-new.php1,752 ▲6221.08 ▲0.35433.37 ▲32.55153.30 ▼8.09
Media Library /wp-admin/upload.php1,698 ▼05.53 ▲0.03145.76 ▼5.40189.46 ▼2.03

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/wixiweb-firephp-queries/vendor/firephp/FirePHP.class.php+1370
    Array and string offset access syntax with curly braces is deprecated

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wixiweb-firephp-queries/wixiweb-firephp-queries.php:25

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 17 tag instead of maximum 10
Please take inspiration from this readme.txt

wixiweb-firephp-queries/wixiweb-firephp-queries.php Passed 13 tests

The principal PHP file in "Wixiweb FirePHP Queries" v. 1.0.1 is loaded by WordPress automatically on each request
122 characters long description:
Use Firebug with FirePHP to analyze the SQL queries made by Wordpress. Ideal for development and avoid performance issues.

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected1,162 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP42738661,162

PHP code 50% from 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
It is recommended to fix the following
  • Please reduce cyclomatic complexity of methods to less than 100 (currently 136)
Cyclomatic complexity
Average complexity per logical line of code0.69
Average class complexity96.33
▷ Minimum class complexity1.00
▷ Maximum class complexity281.00
Average method complexity5.31
▷ Minimum method complexity1.00
▷ Maximum method complexity136.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods66
▷ Static methods2233.33%
▷ Public methods5278.79%
▷ Protected methods1116.67%
▷ Private methods34.55%
Functions4
▷ Named functions250.00%
▷ Anonymous functions250.00%
Constants16
▷ Global constants531.25%
▷ Class constants1168.75%
▷ Public constants11100.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
PNG images were not found in this plugin