10% dash-rewriter

Code Review | Dash Rewriter

WordPress plugin Dash Rewriter scored10%from 54 tests.

About plugin

  • Plugin page: dash-rewriter
  • Plugin version: 1.3.0
  • PHP compatiblity: 8.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Sep 25, 2022
  • Latest release: Jan 6, 2023
  • Number of updates: 8
  • Update frequency: every 13.0 days
  • Top authors: dashdeveloper (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,192 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
  • Install procedure had errors
    • > Notice in wp-content/plugins/dash-rewriter/admin/class-dash-rewriter-admin.php+59
    Trying to access array offset on value of type bool

Server metrics [RAM: ▼1.79MB] [CPU: ▼52.72ms] Passed 4 tests

Server-side resources used by Dash Rewriter
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.19 ▼1.276.14 ▼38.38
Dashboard /wp-admin2.21 ▼1.098.15 ▼42.03
Posts /wp-admin/edit.php2.21 ▼1.148.31 ▼42.70
Add New Post /wp-admin/post-new.php2.21 ▼3.678.09 ▼87.76
Media Library /wp-admin/upload.php2.21 ▼1.026.33 ▼30.86

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-posts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Dash Rewriter
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,899 ▲15313.60 ▼0.705.05 ▲2.6945.97 ▲2.17
Dashboard /wp-admin2,219 ▲315.86 ▼0.03116.19 ▲0.2343.08 ▼1.00
Posts /wp-admin/edit.php2,105 ▲162.06 ▲0.0635.17 ▼3.7931.82 ▼2.08
Add New Post /wp-admin/post-new.php6,247 ▲4,71426.05 ▲2.80916.13 ▲213.5065.92 ▲9.55
Media Library /wp-admin/upload.php1,404 ▲194.22 ▼0.0099.15 ▼5.0847.41 ▲3.37

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/dash-rewriter/admin/class-dash-rewriter-admin.php+59
    Trying to access array offset on value of type bool
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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
Almost there! Just fix the following items
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/dash-rewriter/public/partials/dash-rewriter-public-display.php
    • > /wp-content/plugins/dash-rewriter/admin/partials/dash-rewriter-admin-display.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/dash-rewriter/admin/class-dash-rewriter-admin.php:406

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 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
Attributes that require attention: The official readme.txt is a good inspiration

dash-rewriter/dash-rewriter.php Passed 13 tests

This is the main PHP file of "Dash Rewriter" version 1.3.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
140 characters long description:
Easily spin articles before publishing your post content. Easily integrate with popular plugins like WP Content Pilot and WPematico plugins.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected593 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP12221543587
JavaScript24546
CSS2080

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity4.12
▷ Minimum class complexity1.00
▷ Maximum class complexity16.00
Average method complexity1.58
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods43
▷ Static methods24.65%
▷ Public methods3069.77%
▷ Protected methods00.00%
▷ Private methods1330.23%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin