78% contact-details

Code Review | Contact Details

WordPress plugin Contact Details scored 78% from 54 tests.

About plugin

  • Plugin page: contact-details
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9-3.8.1
  • WordPress version: 6.3.1
  • First release: Oct 8, 2013
  • Latest release: Jul 28, 2015
  • Number of updates: 27
  • Update frequency: every 24.4 days
  • Top authors: BirdBrain Logic (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

500+ active / 6,713 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
Install script ran successfully

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

Analyzing server-side resources used by Contact Details
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.46 ▼3.40
Dashboard /wp-admin3.31 ▲0.0145.91 ▼6.45
Posts /wp-admin/edit.php3.36 ▲0.0047.88 ▲3.03
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.51 ▼6.29
Media Library /wp-admin/upload.php3.23 ▲0.0037.78 ▲3.10
Contact Details /wp-admin/options-general.php?page=birdbrain-contact-details3.1729.99

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Contact Details
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲4913.22 ▼1.371.68 ▼0.1739.46 ▼2.46
Dashboard /wp-admin2,209 ▲215.86 ▼0.04104.15 ▼3.3938.87 ▼2.31
Posts /wp-admin/edit.php2,095 ▲92.01 ▼0.0339.31 ▲2.1835.25 ▲1.76
Add New Post /wp-admin/post-new.php1,533 ▲1923.10 ▲5.57697.19 ▲14.6352.94 ▼2.08
Media Library /wp-admin/upload.php1,397 ▲124.17 ▼0.0095.65 ▼5.6741.05 ▼3.99
Contact Details /wp-admin/options-general.php?page=birdbrain-contact-details1,0742.0625.3645.86

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

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
Please fix the following server-side errors
  • 36 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=birdbrain-contact-details
    • > Notice in wp-content/plugins/contact-details/lib/class.contact-details.php+159
    Trying to access array offset on value of type bool

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/contact-details/init.php

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 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
Please fix the following attributes:
  • Donate link: Invalid URI found ("")
The official readme.txt might help

contact-details/init.php 92% from 13 tests

The main PHP file in "Contact Details" ver. 1.3 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("contact-details.php" instead of "init.php")

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
There were no executable files found in this plugin134 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP26320118
CSS13116

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity2.80
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods5
▷ Static methods480.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin