90% brozzme-db-prefix-change

Code Review | Brozzme DB Prefix & Tools Addons

WordPress plugin Brozzme DB Prefix & Tools Addons scored90%from 54 tests.

About plugin

  • Plugin page: brozzme-db-prefix...
  • Plugin version: 1.3.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.4
  • WordPress version: 6.3.1
  • First release: Jun 28, 2017
  • Latest release: Nov 28, 2023
  • Number of updates: 132
  • Update frequency: every 17.8 days
  • Top authors: Benoti (100%)

Code review

54 tests

User reviews

42 reviews

Install metrics

9,000+ active /92,747 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.12MB] [CPU: ▼3.35ms] Passed 4 tests

An overview of server-side resources used by Brozzme DB Prefix & Tools Addons
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1239.74 ▼0.51
Dashboard /wp-admin3.42 ▲0.1246.96 ▼9.34
Posts /wp-admin/edit.php3.53 ▲0.1849.43 ▼1.12
Add New Post /wp-admin/post-new.php6.00 ▲0.1190.04 ▼2.41
Media Library /wp-admin/upload.php3.34 ▲0.1144.40 ▲6.36
DB PREFIX /wp-admin/admin.php?page=brozzme-db-prefix3.3131.21
DB PREFIX /wp-admin/tools.php?page=brozzme-db-prefix3.3333.09

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Brozzme DB Prefix & Tools Addons
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲4714.72 ▲0.031.80 ▼0.0938.59 ▼10.11
Dashboard /wp-admin2,196 ▲165.62 ▲0.0191.77 ▼7.9042.07 ▼2.10
Posts /wp-admin/edit.php2,107 ▲71.95 ▼0.0038.78 ▼2.4835.79 ▲3.34
Add New Post /wp-admin/post-new.php1,529 ▲322.90 ▼0.43591.07 ▼51.7169.68 ▲15.70
Media Library /wp-admin/upload.php1,404 ▲44.19 ▲0.0294.80 ▲0.7540.32 ▲0.04
DB PREFIX /wp-admin/admin.php?page=brozzme-db-prefix8901.6822.9726.83
DB PREFIX /wp-admin/tools.php?page=brozzme-db-prefix8871.8427.6628.18

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests Passed 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 Passed 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
No output text or server-side errors detected on direct access of PHP files

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 96% from 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
10 plugin tags: tools, _wp, dump, export, config...

brozzme-db-prefix-change/brozzme_db_prefix.php 92% from 13 tests

The main file in "Brozzme DB Prefix & Tools Addons" v. 1.3.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("brozzme-db-prefix-change.php" instead of "brozzme_db_prefix.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin1,078 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP498135481
PO File294100334
CSS2225255
JavaScript4148

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity24.33
▷ Minimum class complexity15.00
▷ Maximum class complexity39.00
Average method complexity3.92
▷ Minimum method complexity1.00
▷ Maximum method complexity30.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods24
▷ Static methods520.83%
▷ Public methods24100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants12
▷ Global constants12100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
includes/img/logo-wps-200x200px.png30.17KB7.41KB▼ 75.43%