10% simply-contact

Code Review | Simply Contact

WordPress plugin Simply Contact scored10%from 54 tests.

About plugin

  • Plugin page: simply-contact
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.9.2
  • WordPress version: 6.3.1
  • First release: Aug 21, 2014
  • Latest release: Aug 22, 2014
  • Number of updates: 6
  • Update frequency: every 0.5 days
  • Top authors: cthreelabs (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,464 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, function 'simply_contact_plugin_activate' not found or invalid function name

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.89ms] Passed 4 tests

Analyzing server-side resources used by Simply Contact
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.10 ▼0.14
Dashboard /wp-admin3.31 ▲0.0148.05 ▼3.37
Posts /wp-admin/edit.php3.36 ▲0.0144.16 ▼0.65
Add New Post /wp-admin/post-new.php5.89 ▲0.0182.26 ▼13.51
Media Library /wp-admin/upload.php3.23 ▲0.0033.95 ▼2.04

Server storage [IO: ▲0.06MB] [DB: ▲0.07MB] Passed 3 tests

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Simply Contact
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲4614.05 ▼0.301.69 ▲0.0544.54 ▲4.21
Dashboard /wp-admin2,211 ▲365.63 ▼0.0894.87 ▼5.7043.86 ▲3.62
Posts /wp-admin/edit.php2,113 ▲132.02 ▲0.0434.46 ▼1.6533.61 ▲0.07
Add New Post /wp-admin/post-new.php1,541 ▲1323.05 ▼0.10657.54 ▼27.7749.99 ▼5.09
Media Library /wp-admin/upload.php1,416 ▲194.20 ▲0.0092.53 ▼13.7040.57 ▼6.03

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin cannot be uninstalled
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, function 'simply_contact_plugin_uninstall' not found or invalid function name
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/simply-contact/contact.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/simply-contact/simply-contact.php:37

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 issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Screenshots: Add an image for screenshot #1 (Screenshot of the Form .)
You can take inspiration from this readme.txt

simply-contact/simply-contact.php Passed 13 tests

The main file in "Simply Contact" v. 0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
86 characters long description:
A simple and sleek contact form for your wordpress site, Powered by google reCaptcha .

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected466 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP3130125402
CSS19564

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions17
▷ Named functions17100.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
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png29.81KB10.71KB▼ 64.06%