10% last-comments-without-links

Code Review | Last Comments Without Links

WordPress plugin Last Comments Without Links scored 10% from 54 tests.

About plugin

  • Plugin page: last-comments-wit...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-3.9
  • WordPress version: 6.3.1
  • First release: May 16, 2014
  • Latest release: May 16, 2014
  • Number of updates: 9
  • Update frequency: N/A
  • Top authors: sinan-isler (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,102 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/last-comments-without-links/index.php+139
    Function create_function() is deprecated

Server metrics [RAM: ▼1.96MB] [CPU: ▼53.66ms] Passed 4 tests

This is a short check of server-side resources used by Last Comments Without Links
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.434.84 ▼36.96
Dashboard /wp-admin2.05 ▼1.267.38 ▼42.86
Posts /wp-admin/edit.php2.05 ▼1.315.94 ▼40.36
Add New Post /wp-admin/post-new.php2.05 ▼3.845.86 ▼94.46
Media Library /wp-admin/upload.php2.05 ▼1.185.58 ▼27.24

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Last Comments Without Links
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.57 ▼1.121.95 ▲0.1540.75 ▼5.04
Dashboard /wp-admin2,203 ▲115.83 ▲0.8897.42 ▼15.2737.82 ▼4.11
Posts /wp-admin/edit.php2,089 ▲31.97 ▼0.0533.27 ▲0.0434.79 ▲0.14
Add New Post /wp-admin/post-new.php1,514 ▼1917.53 ▼5.66613.69 ▼13.6152.67 ▼7.33
Media Library /wp-admin/upload.php1,382 ▼64.20 ▼0.0697.67 ▼0.7741.07 ▼0.83

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/last-comments-without-links/index.php+139
    Function create_function() is deprecated
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_sinlastcomments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/last-comments-without-links/index.php:30

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

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Screenshots: Screenshot #1 (Widget Screenshot) image not found
  • Screenshots: A description for screenshot #0 is required in last-comments-without-links/assets to your readme.txt
The official readme.txt might help

last-comments-without-links/index.php 85% from 13 tests

Analyzing the main PHP file in "Last Comments Without Links" version 1.0
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 496 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("last-comments-without-links.php" instead of "index.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
Good job! No executable or dangerous file extensions detected60 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1394760

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.03
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png9.43KB3.88KB▼ 58.89%