78% add-pingbacks

Code Review | Add Pingbacks

WordPress plugin Add Pingbacks scored78%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: 6.3.1
  • 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,184 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼12.47ms] Passed 4 tests

An overview of server-side resources used by Add Pingbacks
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0238.56 ▼0.75
Dashboard /wp-admin3.36 ▼0.0245.37 ▼19.99
Posts /wp-admin/edit.php3.41 ▲0.0246.53 ▲0.38
Add New Post /wp-admin/post-new.php5.94 ▲0.0281.39 ▼29.51
Media Library /wp-admin/upload.php3.29 ▲0.0238.24 ▲3.95
Add Pingbacks /wp-admin/edit-comments.php?page=addPingbacks3.2830.76
All Comments /wp-admin/edit-comments.php3.3537.91

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

Filesystem and database footprint
No storage issues were detected
Filesystem: no files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Add Pingbacks
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲4613.17 ▼1.181.76 ▼0.2238.96 ▼1.74
Dashboard /wp-admin2,223 ▲354.85 ▼0.96106.62 ▲1.7438.80 ▼3.18
Posts /wp-admin/edit.php2,103 ▲112.00 ▲0.0335.94 ▼1.3533.36 ▲2.72
Add New Post /wp-admin/post-new.php1,548 ▲2523.42 ▲0.49683.05 ▲32.7855.42 ▲6.96
Media Library /wp-admin/upload.php1,408 ▲294.24 ▼0.0496.16 ▲0.1543.42 ▲2.16
Add Pingbacks /wp-admin/edit-comments.php?page=addPingbacks9242.0623.1029.28
All Comments /wp-admin/edit-comments.php1,8062.2733.6035.28

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

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
These server-side errors were triggered
    • > 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 | 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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > 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 errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === add-pingbacks === )
You can take inspiration from this readme.txt

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

The entry point to "Add Pingbacks" version 1.1 is a PHP file that has certain tags in its header comment area
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 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin117 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12810117

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin