84% reword

Code Review | ReWord

WordPress plugin ReWord scored84%from 54 tests.

About plugin

  • Plugin page: reword
  • Plugin version: 3.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.4-6.4
  • WordPress version: 6.3.1
  • First release: Apr 7, 2018
  • Latest release: Nov 20, 2023
  • Number of updates: 41
  • Update frequency: every 50.2 days
  • Top authors: tiomking (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

30+ active /1,675 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.26ms] Passed 4 tests

This is a short check of server-side resources used by ReWord
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0538.86 ▼0.86
Dashboard /wp-admin3.33 ▼0.0146.65 ▼14.26
Posts /wp-admin/edit.php3.39 ▲0.0347.46 ▲0.77
Add New Post /wp-admin/post-new.php5.92 ▲0.0391.11 ▼6.69
Media Library /wp-admin/upload.php3.26 ▲0.0336.54 ▲2.76
Settings /wp-admin/admin.php?page=reword-settings3.2933.34
Help /wp-admin/admin.php?page=reword-help3.26475.18
Reports /wp-admin/admin.php?page=reword-reports3.2835.20

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 14 new files
Database: 1 new table, 14 new options
New tables
wp_reword
New WordPress options
reword_send_stats
can_compress_scripts
reword_icon_pos
widget_theysaidso_widget
reword_plugin_version
db_upgraded
reword_email_new
reword_banner_pos
widget_recent-comments
reword_access_cap
...

Browser metrics Passed 4 tests

ReWord: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,836 ▲8914.26 ▼0.342.31 ▲0.5646.46 ▲2.41
Dashboard /wp-admin2,212 ▲325.57 ▼0.0892.26 ▲3.9291.64 ▲55.26
Posts /wp-admin/edit.php2,135 ▲351.94 ▼0.0638.59 ▼2.9434.66 ▼0.83
Add New Post /wp-admin/post-new.php1,707 ▲15822.08 ▼2.87695.94 ▲56.3747.86 ▼28.75
Media Library /wp-admin/upload.php1,435 ▲414.12 ▼0.1994.92 ▼1.0864.44 ▲23.41
Settings /wp-admin/admin.php?page=reword-settings1,0502.0227.5427.49
Help /wp-admin/admin.php?page=reword-help8861.9924.9727.00
Reports /wp-admin/admin.php?page=reword-reports9492.0026.8327.07

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 13× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/reword/admin/php/reword-settings.php:17
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/reword/class/class-reword-reports-table.php on line 5
    • > PHP Fatal error
      Uncaught Error: Call to a member function display() on null in wp-content/plugins/reword/admin/php/reword-reports.php:25
    • > PHP Notice
      Undefined variable: active_tab in wp-content/plugins/reword/admin/php/reword-reports.php on line 21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/reword/reword.php:29
    • > PHP Notice
      Undefined variable: active_tab in wp-content/plugins/reword/admin/php/reword-reports.php on line 22
    • > PHP Notice
      Undefined variable: reword_new_reports_count in wp-content/plugins/reword/admin/php/reword-reports.php on line 21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/reword/admin/php/reword-help.php:21
    • > PHP Notice
      Undefined variable: reword_ignore_reports_count in wp-content/plugins/reword/admin/php/reword-reports.php on line 22
    • > PHP Notice
      Undefined variable: reword_show_delete_all in wp-content/plugins/reword/admin/php/reword-reports.php on line 16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: typo, mistakes, report, spellcheck, fix...

reword/reword.php 92% from 13 tests

The entry point to "ReWord" version 3.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 447 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin2,536 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript43003561,225
PHP655439992
CSS27120319

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity58.00
▷ Minimum class complexity11.00
▷ Maximum class complexity105.00
Average method complexity3.84
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods38
▷ Static methods37.89%
▷ Public methods2668.42%
▷ Protected methods12.63%
▷ Private methods1128.95%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants14
▷ Global constants14100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
reword-icon.png0.72KB0.64KB▼ 10.08%