84% redmatrix-wp

Code Review | Redmatrix_WP

WordPress plugin Redmatrix_WP scored 84% from 54 tests.

About plugin

  • Plugin page: redmatrix-wp
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-4.1.1
  • WordPress version: 6.3.1
  • First release: Mar 23, 2015
  • Latest release: Mar 24, 2015
  • Number of updates: 4
  • Update frequency: every 0.5 days
  • Top authors: macgirvin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 584 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼6.71ms] Passed 4 tests

An overview of server-side resources used by Redmatrix_WP
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1041.46 ▼3.39
Dashboard /wp-admin3.32 ▲0.0239.43 ▼10.71
Posts /wp-admin/edit.php3.44 ▲0.0946.31 ▼1.63
Add New Post /wp-admin/post-new.php5.97 ▲0.0983.34 ▼11.11
Media Library /wp-admin/upload.php3.32 ▲0.0938.88 ▲3.38
Crosspost to redmatrix /wp-admin/options-general.php?page=xpost-to-redmatrix3.2833.40

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Redmatrix_WP: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.25 ▼1.294.76 ▲2.7441.80 ▼1.89
Dashboard /wp-admin2,213 ▲215.90 ▲0.76114.36 ▼12.4941.05 ▼5.17
Posts /wp-admin/edit.php2,096 ▲101.98 ▼0.0439.25 ▲1.5834.93 ▲1.79
Add New Post /wp-admin/post-new.php6,463 ▲4,94920.16 ▲2.59949.82 ▲273.5356.18 ▼2.35
Media Library /wp-admin/upload.php1,395 ▲104.21 ▲0.0396.84 ▼12.0143.77 ▼3.96
Crosspost to redmatrix /wp-admin/options-general.php?page=xpost-to-redmatrix7962.0526.3526.56

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

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
The smoke test was a success, however most plugin functionality was not tested

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
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Warning
      Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/redmatrix-wp/redmatrix-wp.php on line 27
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/redmatrix-wp/redmatrix-wp.php:27

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
Attributes that require attention:
  • Donate link: Please fix this invalid url: ""
The official readme.txt is a good inspiration

redmatrix-wp/redmatrix-wp.php 92% from 13 tests

This is the main PHP file of "Redmatrix_WP" version 1.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 152 characters long)

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

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.42
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%
Functions21
▷ Named functions21100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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