68% replytocom-ajaxify

Code Review | ReplyToCom Ajaxify

WordPress plugin ReplyToCom Ajaxify scored68%from 54 tests.

About plugin

  • Plugin page: replytocom-ajaxify
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-3.7.1
  • WordPress version: 6.3.1
  • First release: Feb 28, 2014
  • Latest release: Mar 2, 2014
  • Number of updates: 6
  • Update frequency: every 0.5 days
  • Top authors: SultanICQ (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,114 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▼0.90MB] [CPU: ▼29.35ms] Passed 4 tests

An overview of server-side resources used by ReplyToCom Ajaxify
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0543.09 ▼0.33
Dashboard /wp-admin3.05 ▼0.2621.63 ▼22.44
Posts /wp-admin/edit.php3.05 ▼0.3124.91 ▼21.06
Add New Post /wp-admin/post-new.php3.05 ▼2.8424.79 ▼64.46
Media Library /wp-admin/upload.php3.05 ▼0.1922.63 ▼9.45

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for ReplyToCom Ajaxify
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,887 ▲15213.62 ▼0.985.46 ▲3.7541.41 ▲0.42
Dashboard /wp-admin2,210 ▲195.85 ▼0.05108.28 ▲1.5143.72 ▼1.19
Posts /wp-admin/edit.php2,096 ▲42.02 ▲0.0039.31 ▼2.9234.82 ▼5.26
Add New Post /wp-admin/post-new.php1,545 ▲318.44 ▼0.04595.40 ▼47.3155.34 ▲6.55
Media Library /wp-admin/upload.php1,392 ▲74.38 ▲0.2194.69 ▼9.3541.47 ▼5.39
ReplyToCom Ajaxify /wp-admin/replytocom.php260.440.1013.92

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin cannot be uninstalled
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/replytocom-ajaxify/replytocom.php:28

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
    • > GET request to /wp-admin/replytocom.php
    • > Network (severe)
    wp-admin/replytocom.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: seo, replytocom

replytocom-ajaxify/replytocom.php 92% from 13 tests

The main PHP file in "ReplyToCom Ajaxify" ver. 1.0.3 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("replytocom-ajaxify.php" instead of "replytocom.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin399 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1489299
JavaScript1390100

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity59.00
▷ Minimum class complexity59.00
▷ Maximum class complexity59.00
Average method complexity4.41
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods17
▷ Static methods00.00%
▷ Public methods17100.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin