90% stop-pinging-yourself-for-wordpress

Code Review | Stop Pinging Yourself

WordPress plugin Stop Pinging Yourself scored90%from 54 tests.

About plugin

  • Plugin page: stop-pinging-your...
  • Plugin version: 15.01.01
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2.0-4.7.2
  • WordPress version: 6.3.1
  • First release: May 24, 2012
  • Latest release: Apr 7, 2016
  • Number of updates: 12
  • Update frequency: every 143.9 days
  • Top authors: christopherross (75%)PadLabs (33.33%)

Code review

54 tests

User reviews

1 review

Install metrics

600+ active /3,854 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

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

This is a short check of server-side resources used by Stop Pinging Yourself
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0543.43 ▲2.65
Dashboard /wp-admin3.35 ▲0.0449.33 ▼2.79
Posts /wp-admin/edit.php3.40 ▲0.0450.93 ▼7.60
Add New Post /wp-admin/post-new.php5.93 ▲0.0493.76 ▼8.01
Media Library /wp-admin/upload.php3.27 ▲0.0441.44 ▲2.32

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Stop Pinging Yourself
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.72 ▲0.102.15 ▲0.1947.45 ▲2.82
Dashboard /wp-admin2,195 ▲155.65 ▲0.0389.26 ▼3.7938.11 ▼4.81
Posts /wp-admin/edit.php2,100 ▲31.97 ▼0.0039.40 ▼2.0435.12 ▼0.76
Add New Post /wp-admin/post-new.php1,526 ▼023.41 ▲0.47691.55 ▼14.8570.02 ▲15.03
Media Library /wp-admin/upload.php1,400 ▼04.19 ▲0.0096.92 ▼21.3343.23 ▼5.42

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
1 plugin tags: pingback

stop-pinging-yourself-for-wordpress/stop-pinging-yourself-for-wordpress.php Passed 13 tests

The main file in "Stop Pinging Yourself" v. 15.01.01 serves as a complement to information provided in readme.txt and as the entry point to the plugin
57 characters long description:
Stops a WordPress blog from pinging itself with pingbacks

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected311 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP3131168154
PO File24280126
CSS121631

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity6.00
▷ Minimum class complexity3.00
▷ Maximum class complexity9.00
Average method complexity1.91
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected