84% refback

Code Review | Refback

WordPress plugin Refback scored84%from 54 tests.

About plugin

  • Plugin page: refback
  • Plugin version: 2.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.9-5.6
  • WordPress version: 6.3.1
  • First release: Aug 13, 2018
  • Latest release: Dec 26, 2020
  • Number of updates: 5
  • Update frequency: every 173.4 days
  • Top authors: dshanske (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,333 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
Installer ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▼1.78ms] Passed 4 tests

Analyzing server-side resources used by Refback
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1140.11 ▼4.35
Dashboard /wp-admin3.41 ▲0.1149.76 ▼3.48
Posts /wp-admin/edit.php3.53 ▲0.1753.76 ▲7.09
Add New Post /wp-admin/post-new.php5.99 ▲0.1196.39 ▼3.94
Media Library /wp-admin/upload.php3.33 ▲0.1040.12 ▲4.64

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Refback
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.19 ▼1.461.77 ▼0.4340.93 ▼2.93
Dashboard /wp-admin2,206 ▲184.88 ▼1.00104.32 ▼3.2040.70 ▼1.71
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0541.59 ▲2.1536.10 ▼0.30
Add New Post /wp-admin/post-new.php1,519 ▼023.28 ▲0.14722.74 ▲37.3347.05 ▼17.36
Media Library /wp-admin/upload.php1,388 ▼34.17 ▼0.16100.09 ▼10.7945.72 ▼0.22

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not 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
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/refback/refback.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: linkback, comment, response, refback

refback/refback.php Passed 13 tests

This is the main PHP file of "Refback" version 2.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
29 characters long description:
Refback Support for WordPress

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 plugin562 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP4131293562

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity30.33
▷ Minimum class complexity7.00
▷ Maximum class complexity62.00
Average method complexity4.52
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods25
▷ Static methods1664.00%
▷ Public methods2184.00%
▷ Protected methods416.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.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
PNG images were not found in this plugin