89% button-text-changer-wc

Code Review | Button Text Changer WC

WordPress plugin Button Text Changer WC scored89%from 54 tests.

About plugin

  • Plugin page: button-text-chang...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.3.2
  • WordPress version: 6.3.1
  • First release: Oct 20, 2023
  • Latest release: Oct 21, 2023
  • Number of updates: 2
  • Update frequency: every 2.5 days
  • Top authors: 1mdalamin1 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /11 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

Server-side resources used by Button Text Changer WC
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.48 ▼2.58
Dashboard /wp-admin3.33 ▲0.0246.55 ▼1.89
Posts /wp-admin/edit.php3.38 ▲0.0252.88 ▲1.64
Add New Post /wp-admin/post-new.php5.91 ▲0.0281.00 ▼26.21
Media Library /wp-admin/upload.php3.25 ▲0.0239.92 ▲5.34

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Button Text Changer WC: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.38 ▲0.031.54 ▼0.2039.70 ▼1.62
Dashboard /wp-admin2,198 ▲275.55 ▼0.0383.81 ▼13.4339.82 ▼0.45
Posts /wp-admin/edit.php2,079 ▼242.08 ▲0.1134.64 ▲0.3435.63 ▲4.56
Add New Post /wp-admin/post-new.php1,526 ▼023.31 ▼0.10674.02 ▲16.4553.20 ▼5.93
Media Library /wp-admin/upload.php1,400 ▼04.20 ▼0.0894.34 ▲0.6643.86 ▲2.18

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means 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 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Tags: There are too many tags (12 tag instead of maximum 10)
  • Screenshots: Add descriptions for screenshots #4, #5, #6, #7 in button-text-changer-wc/assets to your readme.txt
You can look at the official readme.txt

button-text-changer-wc/button-text-changer-wc.php 92% from 13 tests

The entry point to "Button Text Changer WC" version 1.0.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 169 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected245 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP26884212
JavaScript116433

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.38
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin