84% one-click-comments

Code Review | One Click Comments

WordPress plugin One Click Comments scored84%from 54 tests.

About plugin

  • Plugin page: one-click-comments
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0-3.4
  • WordPress version: 6.3.1
  • First release: Jun 4, 2014
  • Latest release: Jun 4, 2014
  • Number of updates: 8
  • Update frequency: N/A
  • Top authors: Asaf050 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,138 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.05MB] [CPU: ▼3.55ms] Passed 4 tests

This is a short check of server-side resources used by One Click Comments
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0639.82 ▼1.41
Dashboard /wp-admin3.36 ▲0.0655.86 ▲7.76
Posts /wp-admin/edit.php3.41 ▲0.0551.69 ▼1.33
Add New Post /wp-admin/post-new.php5.94 ▲0.0590.29 ▼14.01
Media Library /wp-admin/upload.php3.28 ▲0.0534.87 ▲2.56

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for One Click Comments
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.33 ▼1.101.90 ▼0.1246.03 ▲1.41
Dashboard /wp-admin2,206 ▲185.77 ▲0.8697.74 ▼11.6340.09 ▼1.97
Posts /wp-admin/edit.php2,092 ▼02.00 ▼0.0140.40 ▼2.5035.17 ▲0.15
Add New Post /wp-admin/post-new.php1,514 ▼017.74 ▲0.14639.48 ▲6.8738.81 ▼9.48
Media Library /wp-admin/upload.php1,382 ▼64.25 ▼0.0396.51 ▼0.6342.40 ▼5.78

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/one-click-comments/one-click-comments.php:278

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: comments, email, spam

one-click-comments/one-click-comments.php Passed 13 tests

"One Click Comments" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
58 characters long description:
Allow approve/trash/spam comments directly from the email.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin214 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP24696214

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
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%
Functions5
▷ Named functions5100.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
No PNG images were found in this plugin