94% remove-pingback-trackback-comments

Code Review | Remove Pingback-Trackback Comments

WordPress plugin Remove Pingback-Trackback Comments scored 94% from 54 tests.

About plugin

  • Plugin page: remove-pingback-t...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3.2-4.3
  • WordPress version: 5.8.1
  • First release: Apr 29, 2015
  • Latest release: Aug 31, 2015
  • Number of updates: 5
  • Update frequency: every 24.8 days
  • Top authors: pauiglesias (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

300+ active / 2,752 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼169.82ms] Passed 4 tests

This is a short check of server-side resources used by Remove Pingback-Trackback Comments
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.1534.34 ▲10.48
Dashboard /wp-admin3.10 ▲0.0442.59 ▲0.10
Posts /wp-admin/edit.php3.15 ▲0.0444.84 ▼1.06
Add New Post /wp-admin/post-new.php5.46 ▲0.0282.08 ▼674.03
Media Library /wp-admin/upload.php3.05 ▲0.0430.72 ▼4.28
Remove Pingback-Trackback Comments /wp-admin/tools.php?page=remove-pingback-trackback-comments2.9929.12

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Remove Pingback-Trackback Comments
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,684 ▲8816.29 ▲0.667.83 ▼3.3647.00 ▼0.96
Dashboard /wp-admin2,975 ▲445.90 ▼0.13136.09 ▼8.40109.73 ▼7.73
Posts /wp-admin/edit.php2,744 ▲52.84 ▲0.0064.56 ▼1.9595.79 ▲5.17
Add New Post /wp-admin/post-new.php1,879 ▲20319.21 ▲0.34364.59 ▼17.19111.28 ▼6.32
Media Library /wp-admin/upload.php1,812 ▲55.02 ▼0.00144.87 ▼8.34118.97 ▲1.58
Remove Pingback-Trackback Comments /wp-admin/tools.php?page=remove-pingback-trackback-comments1,2362.1058.8480.42

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/tools.php?page=remove-pingback-trackback-comments
    • > User deprecated in wp-includes/functions.php+5221
    screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/tools.php?page=remove-pingback-trackback-comments
    • > User deprecated in wp-includes/functions.php+5221
    get_screen_icon is deprecated since version 3.8.0 with no alternative available.

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention: The official readme.txt is a good inspiration

remove-pingback-trackback-comments/remove-pingback-trackback-comments.php Passed 13 tests

The main PHP script in "Remove Pingback-Trackback Comments" version 1.0 is automatically included on every request by WordPress
116 characters long description:
A tool to remove pingbacks and trackbacks comments from database and force posts default pingback status to "close".

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin241 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP111076125
PO File12020116

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity23.00
▷ Minimum class complexity23.00
▷ Maximum class complexity23.00
Average method complexity4.67
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods350.00%
▷ Public methods350.00%
▷ Protected methods00.00%
▷ Private methods350.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants00.00%
▷ Class constants6100.00%
▷ Public constants6100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin