89% simple-trackback-validation-with-topsy-blocker

Code Review | Simple Trackback Validation with Topsy Blocker

WordPress plugin Simple Trackback Validation with Topsy Blocker scored 89% from 54 tests.

About plugin

  • Plugin page: simple-trackback-...
  • Plugin version: 1.2.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-4.8
  • WordPress version: 5.8.1
  • First release: May 15, 2010
  • Latest release: Sep 17, 2017
  • Number of updates: 51
  • Update frequency: every 52.6 days
  • Top authors: Tobiask (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

2,000+ active / 72,557 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.07MB] [CPU: ▼140.84ms] Passed 4 tests

An overview of server-side resources used by Simple Trackback Validation with Topsy Blocker
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.91 ▲0.1836.97 ▲9.89
Dashboard /wp-admin3.13 ▲0.0745.95 ▼3.01
Posts /wp-admin/edit.php3.18 ▲0.0742.65 ▼0.07
Add New Post /wp-admin/post-new.php5.50 ▲0.0694.96 ▼550.36
Media Library /wp-admin/upload.php3.07 ▲0.0632.45 ▼9.91

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Simple Trackback Validation with Topsy Blocker
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,684 ▲8815.84 ▲0.1410.28 ▼0.6548.29 ▼1.25
Dashboard /wp-admin2,978 ▲415.92 ▼0.06141.70 ▼7.65113.13 ▼11.98
Posts /wp-admin/edit.php2,744 ▲52.84 ▲0.1367.57 ▲2.1193.00 ▲3.39
Add New Post /wp-admin/post-new.php1,686 ▲318.77 ▲0.01375.18 ▼16.86112.73 ▼3.29
Media Library /wp-admin/upload.php1,812 ▲55.04 ▲0.03147.67 ▼15.95125.94 ▼42.71
Simple TB Validation /wp-admin/simple-trackback-validation-with-topsy-blocker.php260.900.0912.93

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

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× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/simple-trackback-validation-with-topsy-blocker/simple-trackback-validation-with-topsy-blocker.php:33

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
    • > GET request to /wp-admin/simple-trackback-validation-with-topsy-blocker.php
    • > Network (severe)
    wp-admin/simple-trackback-validation-with-topsy-blocker.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: anti-spam, protection, trackback, blocker, block...

simple-trackback-validation-with-topsy-blocker/simple-trackback-validation-with-topsy-blocker.php Passed 13 tests

The main file in "Simple Trackback Validation with Topsy Blocker" v. 1.2.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
126 characters long description:
Enhancement and REPLACEMENT of the original STV plugin from Michael Woehrer. Added automated blocking of topsy.com Trackbacks.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected475 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1157150475

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.53
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin