77% simple-trackback-disabler

Code Review | Simple Trackback Disabler

WordPress plugin Simple Trackback Disabler scored77%from 54 tests.

About plugin

  • Plugin page: simple-trackback-...
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.7.3
  • WordPress version: 6.3.1
  • First release: Sep 16, 2013
  • Latest release: Mar 29, 2017
  • Number of updates: 16
  • Update frequency: every 80.7 days
  • Top authors: alleghenycreative (100%)

Code review

54 tests

User reviews

21 reviews

Install metrics

1,000+ active /16,201 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
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Simple Trackback Disabler
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0441.08 ▼3.66
Dashboard /wp-admin3.35 ▲0.0445.78 ▼6.10
Posts /wp-admin/edit.php3.40 ▲0.0446.32 ▼0.48
Add New Post /wp-admin/post-new.php5.93 ▲0.0484.95 ▼9.59
Media Library /wp-admin/upload.php3.27 ▲0.0433.86 ▼5.03
Trackback Disabler /wp-admin/tools.php?page=tb_disabler3.2128.32

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Simple Trackback Disabler
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲9414.79 ▲0.421.89 ▼0.0744.46 ▼4.56
Dashboard /wp-admin2,207 ▲165.95 ▲1.0393.93 ▼18.1239.27 ▼10.84
Posts /wp-admin/edit.php2,093 ▲42.04 ▲0.0236.38 ▲2.2134.27 ▼3.76
Add New Post /wp-admin/post-new.php1,523 ▲923.30 ▲5.70661.02 ▼36.9568.71 ▲15.66
Media Library /wp-admin/upload.php1,392 ▲104.19 ▼0.0395.54 ▼2.2439.73 ▼3.06
Trackback Disabler /wp-admin/tools.php?page=tb_disabler1,2393.3770.2346.07

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
    • > GET request to /wp-admin/tools.php?page=tb_disabler
    • > Notice in wp-content/plugins/simple-trackback-disabler/trackback-disabler.php+51
    Undefined index: tbd_action_type

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-trackback-disabler/trackback-disabler.php:36

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Plugin Name: Please specify the plugin name on the first line ( === simple-trackback-disabler === )
  • Screenshots: Screenshot #1 (Simple, Straightforward interface to change settings and clean up unwanted comments, trackbacks, and pingbacks.) image missing
You can take inspiration from this readme.txt

simple-trackback-disabler/trackback-disabler.php 85% from 13 tests

"Simple Trackback Disabler" version 1.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 420 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("simple-trackback-disabler.php" instead of "trackback-disabler.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
There were no executable files found in this plugin267 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP15828267

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.34
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.08MB with 0.05MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png84.41KB33.55KB▼ 60.25%