84% bramework

Code Review | Bramework

WordPress plugin Bramework scored84%from 54 tests.

About plugin

  • Plugin page: bramework
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-6.1
  • WordPress version: 6.3.1
  • First release: Apr 28, 2022
  • Latest release: Jan 9, 2023
  • Number of updates: 5
  • Update frequency: every 51.2 days
  • Top authors: bramework (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /1,747 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼3.04ms] Passed 4 tests

A check of server-side resources used by Bramework
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0133.98 ▼8.20
Dashboard /wp-admin3.31 ▲0.0151.16 ▼0.53
Posts /wp-admin/edit.php3.43 ▲0.0747.70 ▲0.39
Add New Post /wp-admin/post-new.php6.03 ▲0.1490.10 ▼3.83
Media Library /wp-admin/upload.php3.24 ▲0.0135.31 ▲3.89

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
wpb_bramework_tokens
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Bramework
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲6013.26 ▼1.111.61 ▼0.5438.60 ▼13.82
Dashboard /wp-admin2,226 ▲385.82 ▲0.79109.85 ▼6.9168.23 ▲25.32
Posts /wp-admin/edit.php2,109 ▲172.01 ▼0.0138.54 ▼0.0734.57 ▼0.73
Add New Post /wp-admin/post-new.php1,683 ▲14122.54 ▼0.64709.02 ▲35.7067.73 ▲13.06
Media Library /wp-admin/upload.php1,399 ▲144.24 ▼0.0098.00 ▼1.3276.95 ▲32.26

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function home_url() in wp-content/plugins/bramework/templates/settings.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: ai, content, seo, blog, marketing

bramework/bramework-integration.php 85% from 13 tests

"Bramework" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("bramework.php" instead of "bramework-integration.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 208 characters long)

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
Success! There were no dangerous files found in this plugin331 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP26515261
CSS114270

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity1.36
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods22
▷ Static methods22100.00%
▷ Public methods22100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.05MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/bramework-logo-purple-svg.png54.06KB27.25KB▼ 49.59%
images/bramework_22x16.png0.49KB0.73KB0.00%
images/bramework-logo-purple-svg-32x32.png0.91KB1.35KB0.00%