84% baqend

Code Review | Speed Kit

WordPress plugin Speed Kit scored84%from 54 tests.

About plugin

  • Plugin page: baqend
  • Plugin version: 2.0.1
  • PHP compatiblity: 7.3.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Nov 24, 2017
  • Latest release: Jul 11, 2023
  • Number of updates: 120
  • Update frequency: every 17.1 days
  • Top authors: baqend (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

4,000+ active /86,009 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲2.71MB] [CPU: ▲9.05ms] Passed 4 tests

A check of server-side resources used by Speed Kit
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /6.17 ▲2.7155.39 ▲16.96
Dashboard /wp-admin6.06 ▲2.7566.26 ▲16.28
Posts /wp-admin/edit.php6.11 ▲2.7561.00 ▲8.26
Add New Post /wp-admin/post-new.php8.58 ▲2.69100.24 ▼5.30
Media Library /wp-admin/upload.php5.92 ▲2.6956.59 ▲19.80
Help /wp-admin/admin.php?page=baqend_help5.9046.98
Advanced /wp-admin/admin.php?page=baqend_advanced5.7740.08
Account /wp-admin/admin.php?page=baqend_account5.7740.73
Settings /wp-admin/admin.php?page=baqend_speed_kit5.7743.12
Overview /wp-admin/admin.php?page=baqend7.22210.12

Server storage [IO: ▲3.25MB] [DB: ▲0.00MB] 67% from 3 tests

Input-output and database impact of this plugin
Please try to fix the following items
  • You have illegally modified 1 file (104.90KB) outside of "wp-content/plugins/baqend/" and "wp-content/uploads/"
    • (new file) speed-kit-sw.js
Filesystem: 552 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
baqend
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Speed Kit
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,871 ▲12513.21 ▼1.384.74 ▲2.9537.27 ▼8.73
Dashboard /wp-admin2,274 ▲895.85 ▲0.0296.95 ▼5.0939.49 ▼6.06
Posts /wp-admin/edit.php2,160 ▲712.02 ▼0.0334.06 ▼8.6133.97 ▼3.25
Add New Post /wp-admin/post-new.php1,572 ▲5823.05 ▲5.44666.48 ▼18.5559.53 ▲3.21
Media Library /wp-admin/upload.php1,459 ▲744.17 ▼0.0495.62 ▼3.1144.80 ▲1.86
Help /wp-admin/admin.php?page=baqend_help1,0225.00145.9927.32
Advanced /wp-admin/admin.php?page=baqend_advanced9696.22137.6825.99
Account /wp-admin/admin.php?page=baqend_account9726.0047.8726.04
Settings /wp-admin/admin.php?page=baqend_speed_kit9696.0251.4127.07
Overview /wp-admin/admin.php?page=baqend9696.0252.7627.23

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% 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)
Good news, no errors were detected

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
  • 273× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'phpDocumentor\\Reflection\\Types\\String_' not found in wp-content/plugins/baqend/vendor/phpdocumentor/type-resolver/src/PseudoTypes/TraitString.php:25
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Formatter\\JsonFormatter' not found in wp-content/plugins/baqend/vendor/monolog/monolog/src/Monolog/Formatter/GoogleCloudLoggingFormatter.php:24
    • > PHP Fatal error
      Uncaught Error: Interface 'Symfony\\Component\\PropertyAccess\\Exception\\ExceptionInterface' not found in wp-content/plugins/baqend/vendor/symfony/property-access/Exception/InvalidArgumentException.php:19
    • > PHP Fatal error
      Uncaught Error: Interface 'Symfony\\Component\\Serializer\\Mapping\\Factory\\ClassMetadataFactoryInterface' not found in wp-content/plugins/baqend/vendor/symfony/serializer/Mapping/Factory/ClassMetadataFactory.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'Baqend\\WordPress\\Controller\\Controller' not found in wp-content/plugins/baqend/includes/Controller/FrontendController.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'Symfony\\Component\\Serializer\ormalizer\\AbstractNormalizer' not found in wp-content/plugins/baqend/vendor/symfony/serializer/Normalizer/AbstractObjectNormalizer.php:37
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/baqend/vendor/guzzlehttp/psr7/src/Stream.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/baqend/views/overview/performance.php:4
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\UriInterface' not found in wp-content/plugins/baqend/vendor/guzzlehttp/psr7/src/Uri.php:17
    • > PHP Fatal error
      Uncaught Error: Interface 'Symfony\\Component\\Serializer\\Mapping\\ClassMetadataInterface' not found in wp-content/plugins/baqend/vendor/symfony/serializer/Mapping/ClassMetadata.php:19

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)
Everything seems fine, but this is not an exhaustive test

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
8 plugin tags: secure, optimization, static website generator, performance, fast...

baqend/baqend.php Passed 13 tests

This is the main PHP file of "Speed Kit" version 2.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
75 characters long description:
Easily use Baqend Cloud for your WordPress site and make it lightning-fast.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin50,537 lines of code in 508 files:
LanguageFilesBlank linesComment linesLines of code
PHP4908,83121,55647,860
JSON2001,693
PO File1178194397
YAML3280209
HTML1280145
XSD114094
Markdown229054
CSS23047
SVG10033
JavaScript5025

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity12.41
▷ Minimum class complexity1.00
▷ Maximum class complexity367.00
Average method complexity2.87
▷ Minimum method complexity1.00
▷ Maximum method complexity63.00
Code structure
Namespaces63
Interfaces79
Traits13
Classes356
▷ Abstract classes185.06%
▷ Concrete classes33894.94%
▷ Final classes12536.98%
Methods2,888
▷ Static methods62921.78%
▷ Public methods2,46485.32%
▷ Protected methods963.32%
▷ Private methods32811.36%
Functions212
▷ Named functions14769.34%
▷ Anonymous functions6530.66%
Constants397
▷ Global constants174.28%
▷ Class constants38095.72%
▷ Public constants31683.16%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 0.13MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/upgrade1.png9.39KB5.29KB▼ 43.63%
img/speed-kit-enable.png39.43KB13.87KB▼ 64.81%
img/upgrade3.png26.75KB7.62KB▼ 71.53%
img/select-app.png33.90KB11.50KB▼ 66.09%
img/upgrade2.png2.92KB1.98KB▼ 32.42%