77% revision-manager-tmc

Code Review | Revision Manager TMC

WordPress plugin Revision Manager TMC scored77%from 54 tests.

About plugin

  • Plugin page: revision-manager-tmc
  • Plugin version: 2.8.18
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Mar 22, 2017
  • Latest release: Jul 3, 2023
  • Number of updates: 162
  • Update frequency: every 14.2 days
  • Top authors: themastercut (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

1,000+ active /41,479 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.91MB] [CPU: ▲0.76ms] Passed 4 tests

Server-side resources used by Revision Manager TMC
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.35 ▲0.8947.33 ▲5.52
Dashboard /wp-admin4.28 ▲0.9859.83 ▲5.21
Posts /wp-admin/edit.php4.31 ▲0.9553.54 ▼8.38
Add New Post /wp-admin/post-new.php6.78 ▲0.9098.67 ▲0.71
Media Library /wp-admin/upload.php4.11 ▲0.8945.05 ▲8.12
Revision Manager TMC /wp-admin/options-general.php?page=rm_tmc_settings4.1036.73

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 173 new files
Database: no new tables, 8 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
rm_tmc_listOfPostsToNotify
rm_tmc
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Revision Manager TMC
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,867 ▲12113.11 ▼1.274.68 ▲2.9143.41 ▼5.20
Dashboard /wp-admin2,265 ▲774.89 ▼0.92102.14 ▼8.5541.10 ▼3.03
Posts /wp-admin/edit.php2,114 ▲252.00 ▼0.0438.22 ▲0.0833.13 ▼4.81
Add New Post /wp-admin/post-new.php1,533 ▼923.21 ▲4.63641.55 ▲27.8953.50 ▼8.85
Media Library /wp-admin/upload.php1,389 ▲44.23 ▲0.05104.09 ▼5.6343.94 ▼2.48
Revision Manager TMC /wp-admin/options-general.php?page=rm_tmc_settings1,9556.60150.7977.43

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
  • Zombie WordPress options were found after uninstall: 8 options
    • widget_recent-posts
    • widget_recent-comments
    • rm_tmc_listOfPostsToNotify
    • theysaidso_admin_options
    • rm_tmc
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/revision-manager-tmc/revision-manager-tmc.php
  • 57× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'shellpress\\v1_4_0\\src\\Shared\\Components\\IUniversalFrontComponent' not found in wp-content/plugins/revision-manager-tmc/vendor/tmc/shellpress/demo/src/Components/UniversalFrontExample.php:14
    • > PHP Fatal error
      Uncaught Error: Interface 'Mustache_Exception' not found in wp-content/plugins/revision-manager-tmc/vendor/tmc/shellpress/lib/Mustache/Exception/SyntaxException.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'shellpress\\v1_4_0\\src\\Shared\\Components\\IComponent' not found in wp-content/plugins/revision-manager-tmc/src/Components/JetPlugs.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'Mustache_Cache_AbstractCache' not found in wp-content/plugins/revision-manager-tmc/vendor/tmc/shellpress/lib/Mustache/Cache/FilesystemCache.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'shellpress\\v1_4_0\\src\\Shared\\Components\\IComponent' not found in wp-content/plugins/revision-manager-tmc/vendor/tmc/shellpress/src/Components/External/EventHandler.php:12
    • > PHP Fatal error
      Uncaught Error: Interface 'Mustache_Loader' not found in wp-content/plugins/revision-manager-tmc/vendor/tmc/shellpress/lib/Mustache/Loader/StringLoader.php:26
    • > PHP Fatal error
      Uncaught Error: Class 'shellpress\\v1_4_0\\src\\Shared\\Components\\IComponent' not found in wp-content/plugins/revision-manager-tmc/src/Components/Settings.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'shellpress\\v1_4_0\\src\\Shared\\Components\\IComponent' not found in wp-content/plugins/revision-manager-tmc/vendor/tmc/shellpress/src/Components/External/OptionsHandler.php:12
    • > PHP Fatal error
      Uncaught Error: Interface 'Mustache_Exception' not found in wp-content/plugins/revision-manager-tmc/vendor/tmc/shellpress/lib/Mustache/Exception/RuntimeException.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'shellpress\\v1_4_0\\src\\Shared\\Components\\IComponent' not found in wp-content/plugins/revision-manager-tmc/src/Components/Notifications.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% 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:
  • Screenshots: A description for screenshot #14 is missing in revision-manager-tmc/assets to your readme.txt
  • Tags: You are using too many tags: 18 tag instead of maximum 10
Please take inspiration from this readme.txt

revision-manager-tmc/revision-manager-tmc.php 85% from 13 tests

The main PHP file in "Revision Manager TMC" ver. 2.8.18 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Domain Path: The domain path is invalid: folder "/languages/" does not exist
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected24,608 lines of code in 157 files:
LanguageFilesBlank linesComment linesLines of code
JSON60016,128
PHP1003,1145,9366,550
Vuejs Component1518021,051
Sass1022047437
JavaScript8208171299
TypeScript431281
HTML612036
CSS71020
Markdown1106

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity10.19
▷ Minimum class complexity1.00
▷ Maximum class complexity140.00
Average method complexity2.40
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces18
Interfaces8
Traits2
Classes80
▷ Abstract classes1417.50%
▷ Concrete classes6682.50%
▷ Final classes00.00%
Methods619
▷ Static methods325.17%
▷ Public methods49079.16%
▷ Protected methods7011.31%
▷ Private methods599.53%
Functions17
▷ Named functions423.53%
▷ Anonymous functions1376.47%
Constants83
▷ Global constants00.00%
▷ Class constants83100.00%
▷ Public constants83100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/tick.png0.41KB0.39KB▼ 5.48%
assets/img/padlock.png0.90KB0.65KB▼ 27.52%