88% add-pingbacks

Code Review | Add Pingbacks

WordPress plugin Add Pingbacks scored 88% from 54 tests.

About plugin

  • Plugin page: add-pingbacks
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-4.0
  • WordPress version: 5.9.2
  • First release: Feb 19, 2014
  • Latest release: Sep 9, 2014
  • Number of updates: 6
  • Update frequency: every 33.8 days
  • Top authors: simonquasar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,008 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼290.03ms] Passed 4 tests

Analyzing server-side resources used by Add Pingbacks
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0355.44 ▲4.95
Dashboard /wp-admin3.44 ▲0.0332.34 ▼1.30
Posts /wp-admin/edit.php3.67 ▲0.0337.33 ▼1.65
Add New Post /wp-admin/post-new.php6.91 ▼0.0795.10 ▼1,159.30
Media Library /wp-admin/upload.php3.32 ▲0.0227.00 ▲2.14
Add Pingbacks /wp-admin/edit-comments.php?page=addPingbacks3.3223.10
All Comments /wp-admin/edit-comments.php3.3927.06

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Add Pingbacks
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,805 ▲5116.19 ▲0.455.57 ▼0.882.07 ▼0.79
Dashboard /wp-admin2,914 ▲566.14 ▲0.00116.92 ▼19.66155.34 ▼8.22
Posts /wp-admin/edit.php2,713 ▲193.24 ▲0.0163.70 ▲0.71143.07 ▲0.77
Add New Post /wp-admin/post-new.php1,676 ▲1016.38 ▼4.51404.09 ▼33.26150.22 ▼10.83
Media Library /wp-admin/upload.php1,717 ▲195.49 ▲0.03136.51 ▼6.88189.11 ▼1.54
Add Pingbacks /wp-admin/edit-comments.php?page=addPingbacks1,1402.4054.57138.06
All Comments /wp-admin/edit-comments.php2,3933.4162.36133.70

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/edit-comments.php?page=addPingbacks
    • > Notice in wp-content/plugins/add-pingbacks/add-pingbacks.php+88
    Undefined index: action

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× 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/add-pingbacks/add-pingbacks.php:152

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% 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
Attributes that require attention:
  • Plugin Name: You should set the name of your plugin on the first line ( === add-pingbacks === )
The official readme.txt is a good inspiration

add-pingbacks/add-pingbacks.php Passed 13 tests

This is the main PHP file of "Add Pingbacks" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
42 characters long description:
Manually add Pingbacks to a Post or a Page

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin117 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12810117

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
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%
Functions8
▷ Named functions8100.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
PNG images were not found in this plugin