84% stylebidet

Code Review | StyleBidet

WordPress plugin StyleBidet scored84%from 54 tests.

About plugin

  • Plugin page: stylebidet
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.0-5.5.3
  • WordPress version: 6.3.1
  • First release: Apr 4, 2014
  • Latest release: Dec 7, 2020
  • Number of updates: 4
  • Update frequency: every 609.0 days
  • Top authors: indextwo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

Server metrics [RAM: ▲0.05MB] [CPU: ▼3.20ms] Passed 4 tests

Analyzing server-side resources used by StyleBidet
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1138.86 ▲0.51
Dashboard /wp-admin3.33 ▲0.0351.11 ▼0.76
Posts /wp-admin/edit.php3.38 ▲0.0247.61 ▼1.99
Add New Post /wp-admin/post-new.php6.03 ▲0.1486.98 ▼8.39
Media Library /wp-admin/upload.php3.25 ▲0.0235.84 ▼1.64
StyleBidet Settings /wp-admin/options-general.php?page=vnmStyleBidetSettings3.2232.97

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 12 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
vnmStyleBidet_clean_save
vnmStyleBidet_version
vnmStyleBidet_remove_text_color
vnmStyleBidet_clean_script
vnmStyleBidet_clean_acf
db_upgraded
theysaidso_admin_options
vnmStyleBidet_clean_output
...

Browser metrics Passed 4 tests

An overview of browser requirements for StyleBidet
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.69 ▲0.321.82 ▲0.1242.86 ▲0.14
Dashboard /wp-admin2,199 ▲195.61 ▼0.0687.99 ▲1.3940.61 ▼1.69
Posts /wp-admin/edit.php2,104 ▲42.01 ▲0.0032.67 ▼2.9334.68 ▼0.27
Add New Post /wp-admin/post-new.php1,528 ▼923.59 ▲5.63606.48 ▼31.3454.68 ▼14.72
Media Library /wp-admin/upload.php1,407 ▲104.20 ▲0.0396.32 ▼6.4144.67 ▼6.82
StyleBidet Settings /wp-admin/options-general.php?page=vnmStyleBidetSettings1,1652.0022.1450.07

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • 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
The smoke test was a success, however most plugin functionality was not tested

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
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/stylebidet/stylebidet.php:73

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: script, clean, css, purify, style...

stylebidet/stylebidet.php 92% from 13 tests

The principal PHP file in "StyleBidet" v. 1.0.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 159 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
There were no executable files found in this plugin913 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
CSS211462508
PHP1155108391
SVG10014

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.58
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%
Constants2
▷ Global constants2100.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
There are no PNG files in this plugin