10% genesis-simple-comments

Code Review | Genesis Simple Comments

WordPress plugin Genesis Simple Comments scored10%from 54 tests.

About plugin

  • Plugin page: genesis-simple-co...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.3.1
  • WordPress version: 6.3.1
  • First release: Sep 15, 2011
  • Latest release: Jan 23, 2012
  • Number of updates: 17
  • Update frequency: every 9.5 days
  • Top authors: Nick_theGeek (100%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active /11,190 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
  • This plugin did not install gracefully
    • > User deprecated in wp-includes/functions.php+5453
    Function get_theme_data is deprecated since version 3.4.0! Use wp_get_theme() instead.

Server metrics [RAM: ▼0.01MB] [CPU: ▼7.71ms] Passed 4 tests

An overview of server-side resources used by Genesis Simple Comments
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.79 ▼10.24
Dashboard /wp-admin3.31 ▼0.0448.50 ▼17.36
Posts /wp-admin/edit.php3.36 ▲0.0052.13 ▲3.19
Add New Post /wp-admin/post-new.php5.89 ▲0.0094.39 ▼1.36
Media Library /wp-admin/upload.php3.23 ▲0.0035.51 ▼1.87

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Genesis Simple Comments
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.35 ▼0.222.03 ▲0.1440.22 ▼1.66
Dashboard /wp-admin2,195 ▲245.63 ▲0.0895.35 ▼8.7341.32 ▼2.37
Posts /wp-admin/edit.php2,100 ▼02.06 ▲0.0639.51 ▲3.8435.18 ▲0.35
Add New Post /wp-admin/post-new.php1,526 ▼223.21 ▲0.18640.20 ▼56.6456.94 ▲1.56
Media Library /wp-admin/upload.php1,403 ▲64.21 ▲0.0196.35 ▼2.3545.76 ▲3.34

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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
Please take a closer look at the following
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/genesis-simple-comments/output.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/genesis-simple-comments/admin.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/genesis-simple-comments/plugin.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === genesis-simple-comments === )
You can look at the official readme.txt

genesis-simple-comments/plugin.php 92% from 13 tests

The entry point to "Genesis Simple Comments" version 1.0.1 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("genesis-simple-comments.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin1,102 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP4152186657
CSS12844295
PO File14181100
JavaScript1132350

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity67.00
▷ Minimum class complexity67.00
▷ Maximum class complexity67.00
Average method complexity14.20
▷ Minimum method complexity1.00
▷ Maximum method complexity59.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions22
▷ Named functions22100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
14 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
classes/images/ui-bg_highlight-soft_75_cccccc_1x100.png0.10KB0.17KB0.00%
classes/images/ui-bg_flat_75_ffffff_40x100.png0.17KB0.08KB▼ 51.12%
classes/images/ico-delete.png0.70KB0.72KB0.00%
classes/images/ui-icons_cd0a0a_256x240.png4.27KB4.11KB▼ 3.78%
classes/images/ui-bg_glass_65_ffffff_1x400.png0.10KB0.10KB▼ 5.71%