84% style-stripper

Code Review | Style Stripper

WordPress plugin Style Stripper scored 84% from 54 tests.

About plugin

  • Plugin page: style-stripper
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.5.2
  • WordPress version: 6.3.1
  • First release: Jun 6, 2012
  • Latest release: May 17, 2016
  • Number of updates: 10
  • Update frequency: every 144.1 days
  • Top authors: ericjuden (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active / 3,013 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼0.39ms] Passed 4 tests

An overview of server-side resources used by Style Stripper
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.64 ▼5.30
Dashboard /wp-admin3.31 ▲0.0163.42 ▲14.04
Posts /wp-admin/edit.php3.36 ▲0.0146.22 ▼1.84
Add New Post /wp-admin/post-new.php5.89 ▲0.01110.66 ▲9.57
Media Library /wp-admin/upload.php3.24 ▲0.0135.16 ▼3.99

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Style Stripper
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.25 ▼1.381.80 ▼0.1040.93 ▼4.18
Dashboard /wp-admin2,206 ▲185.85 ▲0.03110.72 ▼47.0044.65 ▼12.35
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0137.45 ▲1.1535.14 ▲1.64
Add New Post /wp-admin/post-new.php1,533 ▲1323.31 ▲0.04676.16 ▼68.7246.44 ▼22.89
Media Library /wp-admin/upload.php1,388 ▼04.14 ▼0.05122.18 ▲6.0746.64 ▼8.69

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/style-stripper/style-stripper.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: remove, delete, inline styles, multisite, styles

style-stripper/style-stripper.php Passed 13 tests

"Style Stripper" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
80 characters long description:
Removes all inline style tags from the content of posts/pages/custom post types.

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
Good job! No executable or dangerous file extensions detected21 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP151021

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
There are no PNG files in this plugin