84% contact-icons

Code Review | Contact Icons

WordPress plugin Contact Icons scored84%from 54 tests.

About plugin

  • Plugin page: contact-icons
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 6.3.1
  • First release: Nov 12, 2012
  • Latest release: Nov 13, 2012
  • Number of updates: 7
  • Update frequency: every 0.1 days
  • Top authors: yuretz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /2,567 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: ▼4.78ms] Passed 4 tests

Server-side resources used by Contact Icons
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.56 ▼2.14
Dashboard /wp-admin3.31 ▲0.0043.84 ▼2.36
Posts /wp-admin/edit.php3.36 ▲0.0044.93 ▼2.18
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.98 ▼11.68
Media Library /wp-admin/upload.php3.23 ▲0.0033.03 ▼2.91

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Contact Icons
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.38 ▼0.991.57 ▼0.0843.34 ▲4.28
Dashboard /wp-admin2,206 ▲155.84 ▼0.0694.11 ▼9.3038.14 ▼4.79
Posts /wp-admin/edit.php2,089 ▼02.02 ▼0.0134.32 ▼0.0534.74 ▼1.12
Add New Post /wp-admin/post-new.php1,537 ▲1723.14 ▼0.06669.29 ▼7.1053.80 ▲4.32
Media Library /wp-admin/upload.php1,385 ▼04.38 ▲0.1399.00 ▼14.4846.16 ▼1.55

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however 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
  • 1× 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/contact-icons/contact-icons.php:109

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: These screenshots require images: #1 (Original page.), #2 (Page after plugin activation.)
The official readme.txt is a good inspiration

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

The entry point to "Contact Icons" version 1.0.0 is a PHP file that has certain tags in its header comment area
91 characters long description:
Icons for your contact information: email, icq, skype, mobile, mts, beeline, life, kyivstar

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 plugin86 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1171086

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.12
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
12 PNG files occupy 0.09MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
i/16/email.png0.58KB0.47KB▼ 19.83%
screenshot-1.png36.93KB13.14KB▼ 64.42%
i/16/tele.png0.61KB0.52KB▼ 14.56%
i/16/mob.png0.19KB0.14KB▼ 27.18%
i/16/mts.png0.68KB0.96KB0.00%