68% text-mutator

Code Review | Text Mutator

WordPress plugin Text Mutator scored68%from 54 tests.

About plugin

  • Plugin page: text-mutator
  • Plugin version: 0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.8
  • WordPress version: 6.3.1
  • First release: Sep 12, 2017
  • Latest release: Sep 12, 2017
  • Number of updates: 5
  • Update frequency: every 1.4 days
  • Top authors: Lou Friedman (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /757 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼1.84MB] [CPU: ▼56.55ms] Passed 4 tests

Analyzing server-side resources used by Text Mutator
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.14 ▼1.324.73 ▼35.49
Dashboard /wp-admin2.16 ▼1.145.99 ▼45.88
Posts /wp-admin/edit.php2.17 ▼1.195.19 ▼42.00
Add New Post /wp-admin/post-new.php2.16 ▼3.725.93 ▼102.83
Media Library /wp-admin/upload.php2.16 ▼1.065.32 ▼31.41
Text Mutator Settings /wp-admin/options-general.php?page=text-mutator/text-mutator.php2.176.74

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Text Mutator
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8313.71 ▼0.674.61 ▲2.8342.59 ▼2.56
Dashboard /wp-admin2,229 ▲375.04 ▲0.10102.16 ▼18.1839.80 ▼7.92
Posts /wp-admin/edit.php2,114 ▲252.29 ▲0.3135.44 ▼2.6830.21 ▼5.61
Add New Post /wp-admin/post-new.php1,534 ▲1523.52 ▲0.17590.44 ▼58.5231.37 ▼36.69
Media Library /wp-admin/upload.php1,411 ▲204.43 ▲0.23102.15 ▼0.8642.40 ▼3.54
Text Mutator Settings /wp-admin/options-general.php?page=text-mutator/text-mutator.php1,5463.0768.3633.14

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • The plugin did not uninstall gracefully
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the wp-color-picker handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=text-mutator/text-mutator.php
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the wp-color-picker handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=text-mutator/text-mutator.php
    • > Notice in wp-content/plugins/text-mutator/text-mutator.php+456
    Trying to access array offset on value of type bool

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/text-mutator/text-mutator.php:64

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 errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: strike-through, flourish, highlight, text style, redact...

text-mutator/text-mutator.php Passed 13 tests

"Text Mutator" version 0.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
47 characters long description:
Highlight, redact, style and modify text blocks

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin2,109 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
SVG2201,802
PHP2166102302
JavaScript1225

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity28.00
▷ Minimum class complexity28.00
▷ Maximum class complexity28.00
Average method complexity2.23
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods22
▷ Static methods14.55%
▷ Public methods2195.45%
▷ Protected methods00.00%
▷ Private methods14.55%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin