10% replytocom-controller

Code Review | Replytocom Controller

WordPress plugin Replytocom Controller scored10%from 54 tests.

About plugin

  • Plugin page: replytocom-contro...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-3.5.1
  • WordPress version: 6.3.1
  • First release: Mar 21, 2013
  • Latest release: Dec 12, 2016
  • Number of updates: 10
  • Update frequency: every 136.5 days
  • Top authors: ClaytonL (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /3,098 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 validation failed for this plugin
    • > Deprecated in wp-content/plugins/replytocom-controller/replytocom-controller.php+38
    Methods with the same name as their class will not be constructors in a future version of PHP; replytocom_controller has a deprecated constructor

Server metrics [RAM: ▼1.92MB] [CPU: ▼53.55ms] Passed 4 tests

A check of server-side resources used by Replytocom Controller
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.07 ▼1.396.05 ▼34.55
Dashboard /wp-admin2.09 ▼1.226.46 ▼45.51
Posts /wp-admin/edit.php2.09 ▼1.275.83 ▼42.14
Add New Post /wp-admin/post-new.php2.09 ▼3.806.03 ▼91.98
Media Library /wp-admin/upload.php2.09 ▼1.145.16 ▼33.89
Replytocom Controller /wp-admin/options-general.php?page=replytocom-controller-admin2.096.86

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

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

Browser metrics Passed 4 tests

Replytocom Controller: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲3214.27 ▼0.001.90 ▼0.1441.29 ▼8.01
Dashboard /wp-admin2,199 ▲225.65 ▼0.0387.58 ▼2.9740.97 ▼3.88
Posts /wp-admin/edit.php2,107 ▲71.99 ▼0.0133.71 ▼3.3432.20 ▼6.33
Add New Post /wp-admin/post-new.php1,552 ▲1718.28 ▲0.19618.87 ▼19.9262.84 ▼7.75
Media Library /wp-admin/upload.php1,401 ▲44.21 ▲0.0498.42 ▼6.4442.31 ▼3.81
Replytocom Controller /wp-admin/options-general.php?page=replytocom-controller-admin7912.0024.1826.65

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/replytocom-controller/replytocom-controller.php+38
    Methods with the same name as their class will not be constructors in a future version of PHP; replytocom_controller has a deprecated constructor
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=replytocom-controller-admin
    • > Deprecated in wp-content/plugins/replytocom-controller/replytocom-controller.php+38
    Methods with the same name as their class will not be constructors in a future version of PHP; replytocom_controller has a deprecated constructor
    • > GET request to /wp-admin/options-general.php?page=replytocom-controller-admin
    • > Notice in wp-content/plugins/replytocom-controller/replytocom-controller.php+133
    Trying to access array offset on value of type bool

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: comments, replytocom, seo, bots, duplicate content...

replytocom-controller/replytocom-controller.php Passed 13 tests

The main PHP file in "Replytocom Controller" ver. 1.2 adds more information about the plugin and also serves as the entry point for this plugin
67 characters long description:
Remove ?replytocom= from links and redirect those who use it anyway

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 detected77 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1154677

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.33
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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