89% buyte

Code Review | Buyte

WordPress plugin Buyte scored89%from 54 tests.

About plugin

  • Plugin page: buyte
  • Plugin version: 0.2.5
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Aug 16, 2019
  • Latest release: Oct 13, 2021
  • Number of updates: 38
  • Update frequency: every 20.8 days
  • Top authors: webdoodle (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,255 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.13MB] [CPU: ▼2.12ms] Passed 4 tests

This is a short check of server-side resources used by Buyte
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1339.74 ▼3.88
Dashboard /wp-admin3.43 ▲0.1343.45 ▼8.70
Posts /wp-admin/edit.php3.54 ▲0.1945.61 ▲1.03
Add New Post /wp-admin/post-new.php6.01 ▲0.12103.07 ▲6.58
Media Library /wp-admin/upload.php3.35 ▲0.1236.98 ▲3.08

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Buyte
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.19 ▼1.221.74 ▼0.1142.92 ▼2.24
Dashboard /wp-admin2,206 ▲184.86 ▼0.0399.73 ▼4.2239.96 ▼2.98
Posts /wp-admin/edit.php2,089 ▲212.04 ▲0.0236.09 ▲0.0633.61 ▲0.42
Add New Post /wp-admin/post-new.php1,533 ▼023.06 ▼0.09640.32 ▼56.0760.25 ▲10.85
Media Library /wp-admin/upload.php1,391 ▼04.19 ▼0.0393.94 ▼8.1641.79 ▼2.01

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: No descriptions were found for these screenshots #2, #3, #4, #5, #6, #7, #8 in buyte/assets to your readme.txt
The official readme.txt is a good inspiration

buyte/buyte.php 92% from 13 tests

The main file in "Buyte" v. 0.2.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:
  • Description: Please keep the plugin description shorter than 140 characters (currently 179 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,496 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP62123091,221
JavaScript31922244
JSON20023
CSS1108

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity27.67
▷ Minimum class complexity2.00
▷ Maximum class complexity97.00
Average method complexity3.08
▷ Minimum method complexity1.00
▷ Maximum method complexity39.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods77
▷ Static methods1722.08%
▷ Public methods6483.12%
▷ Protected methods67.79%
▷ Private methods79.09%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants33
▷ Global constants26.06%
▷ Class constants3193.94%
▷ Public constants31100.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
9 compressed PNG files occupy 0.46MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-7.png54.02KB53.55KB▼ 0.87%
assets/screenshot-2.png108.42KB109.07KB0.00%
assets/screenshot-1.png41.82KB42.07KB0.00%
assets/screenshot-5.png50.99KB50.91KB0.17%
assets/screenshot-4.png60.52KB60.87KB0.00%