84% custom-pingback-email

Code Review | Custom Pingback Email

WordPress plugin Custom Pingback Email scored84%from 54 tests.

About plugin

  • Plugin page: custom-pingback-e...
  • Plugin version: 0.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-3.5.1
  • WordPress version: 6.3.1
  • First release: Jun 4, 2013
  • Latest release: Jun 4, 2013
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: tanner m (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /991 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼1.39ms] Passed 4 tests

Analyzing server-side resources used by Custom Pingback Email
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0541.27 ▼2.57
Dashboard /wp-admin3.36 ▲0.0649.75 ▼3.05
Posts /wp-admin/edit.php3.41 ▲0.0651.48 ▼0.00
Add New Post /wp-admin/post-new.php5.96 ▲0.0893.17 ▲0.05
Media Library /wp-admin/upload.php3.29 ▲0.0641.99 ▲5.06

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Custom Pingback Email
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.33 ▼0.021.85 ▼0.0641.40 ▼5.80
Dashboard /wp-admin2,200 ▲235.65 ▲0.0592.39 ▼4.8040.36 ▼2.43
Posts /wp-admin/edit.php2,105 ▲52.00 ▼0.0342.01 ▲5.8034.52 ▼1.84
Add New Post /wp-admin/post-new.php1,530 ▲123.02 ▼0.29646.78 ▼33.0852.44 ▲2.57
Media Library /wp-admin/upload.php1,405 ▲54.21 ▼0.0699.63 ▼7.6844.92 ▲2.37

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
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/custom-pingback-email/includes/cpe_settings_field.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/custom-pingback-email/custom_pingback_email.php:40

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 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
3 plugin tags: custom email, trackback, pingback

custom-pingback-email/custom_pingback_email.php 85% from 13 tests

The principal PHP file in "Custom Pingback Email" v. 0.1.0 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: The principal plugin file should be the same as the plugin slug ("custom-pingback-email.php" instead of "custom_pingback_email.php")

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
Good job! No executable or dangerous file extensions detected187 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP24394179
JavaScript1206
Markdown1102

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin