84% change-wp-branding

Code Review | Change WP Branding

WordPress plugin Change WP Branding scored84%from 54 tests.

About plugin

  • Plugin page: change-wp-branding
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.9
  • WordPress version: 6.3.1
  • First release: Mar 5, 2022
  • Latest release: Mar 5, 2022
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: wphelpline (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /232 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

Server-side resources used by Change WP Branding
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.62 ▲3.18
Dashboard /wp-admin3.34 ▼0.0141.96 ▼15.77
Posts /wp-admin/edit.php3.39 ▲0.0344.02 ▼4.35
Add New Post /wp-admin/post-new.php5.92 ▲0.0377.04 ▼20.18
Media Library /wp-admin/upload.php3.26 ▲0.0334.40 ▲1.31
Change WP Branding /wp-admin/tools.php?page=change-wp-branding-options3.2328.98

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Change WP Branding
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,796 ▲5014.57 ▲0.221.73 ▲0.1344.16 ▲2.76
Dashboard /wp-admin2,199 ▲195.52 ▼0.1385.45 ▼0.0437.22 ▼1.12
Posts /wp-admin/edit.php2,104 ▲42.00 ▲0.0440.06 ▲1.8637.50 ▲0.37
Add New Post /wp-admin/post-new.php1,532 ▲123.02 ▼0.06630.48 ▲42.6843.25 ▼23.50
Media Library /wp-admin/upload.php1,404 ▲104.22 ▼0.02107.44 ▲10.4045.62 ▲0.82
Change WP Branding /wp-admin/tools.php?page=change-wp-branding-options8522.1523.3431.76

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 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 50% from 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/change-wp-branding/change-wp-branding.php:20

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 97% 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
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (screenshot-1.png) image missing
The official readme.txt is a good inspiration

change-wp-branding/change-wp-branding.php Passed 13 tests

The main file in "Change WP Branding" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
41 characters long description:
Modify WP Admin Branding and Color Scheme

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin104 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14127104

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

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
PNG images were not found in this plugin