84% remove-block-library-styles

Code Review | Remove Block Library Styles

WordPress plugin Remove Block Library Styles scored84%from 54 tests.

About plugin

  • Plugin page: remove-block-libr...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.9
  • WordPress version: 6.3.1
  • First release: May 17, 2022
  • Latest release: May 18, 2022
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: mikeyott (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /287 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.36ms] Passed 4 tests

Analyzing server-side resources used by Remove Block Library Styles
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.08 ▼8.11
Dashboard /wp-admin3.31 ▲0.0145.50 ▼5.28
Posts /wp-admin/edit.php3.36 ▲0.0042.66 ▲3.58
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.75 ▼10.31
Media Library /wp-admin/upload.php3.23 ▲0.0033.09 ▼1.75

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Remove Block Library Styles
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,784 ▼214.69 ▲0.531.60 ▼0.2641.00 ▼7.41
Dashboard /wp-admin2,195 ▲155.49 ▼0.0880.98 ▼19.9438.26 ▼3.78
Posts /wp-admin/edit.php2,097 ▼31.96 ▼0.0736.15 ▼5.5732.32 ▼8.34
Add New Post /wp-admin/post-new.php1,535 ▲718.14 ▼4.97625.33 ▼27.2460.74 ▲9.79
Media Library /wp-admin/upload.php1,397 ▼64.16 ▼0.0196.80 ▼7.9441.94 ▼6.19

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 did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not 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
Please 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/remove-block-library-styles/remove-block-library-styles.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
6 plugin tags: styles, css, kill, woocommerce, gutenberg...

remove-block-library-styles/remove-block-library-styles.php Passed 13 tests

This is the main PHP file of "Remove Block Library Styles" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
103 characters long description:
Prevent Gutenberg styles from loading on the front-end. Just activate the plugin, nothing to configure.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin8 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1198

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
There are no PNG files in this plugin