10% spider-contacts

Code Review | SpiderContacts

WordPress plugin SpiderContacts scored10%from 54 tests.

About plugin

  • Plugin page: spider-contacts
  • Plugin version: 1.1.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.0
  • WordPress version: 6.3.1
  • First release: Jan 14, 2013
  • Latest release: Dec 16, 2019
  • Number of updates: 68
  • Update frequency: every 37.2 days
  • Top authors: webdorado (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

200+ active /59,818 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/spider-contacts/contacts.php+1617
    Undefined variable: table_name

Server metrics [RAM: ▲0.02MB] [CPU: ▼3.45ms] Passed 4 tests

This is a short check of server-side resources used by SpiderContacts
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.44 ▼0.0233.57 ▼9.27
Dashboard /wp-admin3.34 ▲0.0444.97 ▼7.08
Posts /wp-admin/edit.php3.39 ▲0.0346.29 ▲0.85
Add New Post /wp-admin/post-new.php5.91 ▲0.0396.66 ▲2.87
Media Library /wp-admin/upload.php3.26 ▲0.0335.02 ▲1.72
Contacts /wp-admin/admin.php?page=Single_Spider_contact3.5838.17
Uninstall Spider Contact /wp-admin/admin.php?page=Uninstall_Spider_Contact3.2342.52
Licensing /wp-admin/admin.php?page=Spider_contact_Licensing3.2328.13
Styles and Colors /wp-admin/admin.php?page=Options_contact_styles3.2731.68
Message /wp-admin/admin.php?page=Massages_Spider_contact3.4035.24
Global Options /wp-admin/admin.php?page=Options_contact_global3.2338.09
Message Options /wp-admin/admin.php?page=Options_masasge_options3.2330.53
Categories /wp-admin/admin.php?page=Categories_Spider_contact3.4734.68

Server storage [IO: ▲5.11MB] [DB: ▲0.02MB] Passed 3 tests

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

Browser metrics Passed 4 tests

An overview of browser requirements for SpiderContacts
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,890 ▲13313.62 ▼0.762.21 ▲0.1538.66 ▼10.01
Dashboard /wp-admin2,251 ▲634.90 ▼0.91104.40 ▼1.6865.87 ▲21.82
Posts /wp-admin/edit.php2,166 ▲802.27 ▲0.2738.81 ▲2.2141.20 ▲5.11
Add New Post /wp-admin/post-new.php1,575 ▲5618.06 ▼5.01592.02 ▼56.4365.87 ▲14.36
Media Library /wp-admin/upload.php1,458 ▲734.34 ▲0.1696.47 ▼6.4979.51 ▲35.65
Contacts /wp-admin/admin.php?page=Single_Spider_contact1,1762.0828.7235.86
Uninstall Spider Contact /wp-admin/admin.php?page=Uninstall_Spider_Contact9211.9325.0426.65
Licensing /wp-admin/admin.php?page=Spider_contact_Licensing8671.9426.0722.80
Styles and Colors /wp-admin/admin.php?page=Options_contact_styles8741.9325.0230.31
Message /wp-admin/admin.php?page=Massages_Spider_contact1,0802.2129.1531.97
Global Options /wp-admin/admin.php?page=Options_contact_global8661.8429.0529.07
Message Options /wp-admin/admin.php?page=Options_masasge_options8681.9226.0227.30
Categories /wp-admin/admin.php?page=Categories_Spider_contact1,0181.8224.5831.60

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The plugin did not uninstall successfully, leaving 4 tables in the database
    • wp_spidercontacts_params
    • wp_spidercontacts_contacts
    • wp_spidercontacts_contacts_categories
    • wp_spidercontacts_messages
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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
  • 9× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/spider-contacts/contact_contact.html.php
    • > /wp-content/plugins/spider-contacts/contact_contact.php
    • > /wp-content/plugins/spider-contacts/messages.php
    • > /wp-content/plugins/spider-contacts/Categories.php
    • > /wp-content/plugins/spider-contacts/messages.html.php
    • > /wp-content/plugins/spider-contacts/Categories.html.php
    • > /wp-content/plugins/spider-contacts/wd_captcha.php
    • > /wp-content/plugins/spider-contacts/window.php
    • > /wp-content/plugins/spider-contacts/elements/color.php
  • 153× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Notice
      A non well formed numeric value encountered in wp-content/plugins/spider-contacts/wd_captcha.php on line 187
    • > PHP Notice
      A non well formed numeric value encountered in wp-content/plugins/spider-contacts/wd_captcha.php on line 187
    • > PHP Notice
      A non well formed numeric value encountered in wp-content/plugins/spider-contacts/wd_captcha.php on line 187
    • > PHP Notice
      A non well formed numeric value encountered in wp-content/plugins/spider-contacts/wd_captcha.php on line 187
    • > PHP Notice
      A non well formed numeric value encountered in wp-content/plugins/spider-contacts/wd_captcha.php on line 187
    • > PHP Notice
      A non well formed numeric value encountered in wp-content/plugins/spider-contacts/wd_captcha.php on line 187
    • > PHP Notice
      A non well formed numeric value encountered in wp-content/plugins/spider-contacts/wd_captcha.php on line 187
    • > PHP Notice
      A non well formed numeric value encountered in wp-content/plugins/spider-contacts/wd_captcha.php on line 187
    • > PHP Notice
      A non well formed numeric value encountered in wp-content/plugins/spider-contacts/wd_captcha.php on line 187
    • > PHP Notice
      A non well formed numeric value encountered in wp-content/plugins/spider-contacts/wd_captcha.php on line 187

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
There were no plugin tags found

spider-contacts/contacts.php 92% from 13 tests

The primary PHP file in "SpiderContacts" version 1.1.7 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("spider-contacts.php" instead of "contacts.php")

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
Success! There were no dangerous files found in this plugin12,102 lines of code in 75 files:
LanguageFilesBlank linesComment linesLines of code
PHP163,2352246,462
PO File461,5192,2543,725
JavaScript82641821,581
CSS2835320
HTML33014

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions76
▷ Named functions76100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
24 PNG files occupy 0.23MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/Spider_contactLogo.png3.43KB1.03KB▼ 69.99%
spiderBox/close.png3.17KB2.20KB▼ 30.73%
elements/jscolor/hv.png2.80KB7.32KB0.00%
images/Spider_ContactLogoHover.png3.81KB1.40KB▼ 63.36%
Front_images/star4.png5.19KB1.71KB▼ 67.06%