84% contact-us-page

Code Review | Contact Us Page

WordPress plugin Contact Us Page scored84%from 54 tests.

About plugin

  • Plugin page: contact-us-page
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.4
  • WordPress version: 6.3.1
  • First release: Dec 15, 2015
  • Latest release: Dec 15, 2015
  • Number of updates: 6
  • Update frequency: every 91.7 days
  • Top authors: devmatte (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /10,523 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

An overview of server-side resources used by Contact Us Page
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0344.45 ▼0.38
Dashboard /wp-admin3.34 ▲0.0457.46 ▲4.60
Posts /wp-admin/edit.php3.39 ▲0.0450.72 ▼5.25
Add New Post /wp-admin/post-new.php5.92 ▲0.0498.52 ▼4.20
Media Library /wp-admin/upload.php3.27 ▲0.0436.02 ▼1.64

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Contact Us Page
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲4614.25 ▼0.012.70 ▲0.6258.18 ▲17.72
Dashboard /wp-admin2,211 ▲375.51 ▼0.2087.48 ▲1.4540.83 ▼7.01
Posts /wp-admin/edit.php2,116 ▲162.03 ▲0.0040.39 ▲0.2836.83 ▼7.79
Add New Post /wp-admin/post-new.php1,544 ▲1823.15 ▼0.08620.06 ▲6.8070.86 ▲16.87
Media Library /wp-admin/upload.php1,416 ▲164.19 ▼0.0194.05 ▼13.2049.11 ▲2.73

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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_action() in wp-content/plugins/contact-us-page/contact-us-page.php:25
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/contact-us-page/settings/cup_settings.php:2

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 uses markdown syntax to describe your plugin to the world
7 plugin tags: icons, map, contact page, google map, contact form...

contact-us-page/contact-us-page.php Passed 13 tests

Analyzing the main PHP file in "Contact Us Page" version 1.0
15 characters long description:
Contact Us Page

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected215 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP43919192
CSS15023

PHP code Passed 2 tests

This is a short overview 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.16
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
7 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/icons/twitter.png0.83KB0.64KB▼ 23.21%
includes/icons/email.png0.37KB0.46KB0.00%
includes/icons/google.png0.95KB0.73KB▼ 23.02%
includes/icons/fax.png1.55KB0.97KB▼ 37.48%
includes/icons/home.png0.38KB0.55KB0.00%