84% seos-social-icons

Code Review | Seos Social Icons

WordPress plugin Seos Social Icons scored84%from 54 tests.

About plugin

  • Plugin page: seos-social-icons
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.6
  • WordPress version: 6.3.1
  • First release: Oct 14, 2016
  • Latest release: Nov 8, 2016
  • Number of updates: 4
  • Update frequency: every 6.3 days
  • Top authors: seosbg (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,363 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
This plugin's installer ran successfully

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

An overview of server-side resources used by Seos Social Icons
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0442.85 ▼1.22
Dashboard /wp-admin3.35 ▲0.0451.14 ▼1.41
Posts /wp-admin/edit.php3.40 ▲0.0451.62 ▼0.07
Add New Post /wp-admin/post-new.php5.93 ▲0.0494.72 ▼3.63
Media Library /wp-admin/upload.php3.27 ▲0.0435.87 ▼1.68

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Seos Social Icons
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲8813.26 ▼1.041.83 ▼0.2647.08 ▲2.92
Dashboard /wp-admin2,241 ▲445.80 ▲0.9299.46 ▼18.8579.68 ▲35.87
Posts /wp-admin/edit.php2,120 ▲202.00 ▼0.0539.26 ▲3.2136.51 ▲1.33
Add New Post /wp-admin/post-new.php1,555 ▲2418.35 ▼4.92715.98 ▲38.3072.76 ▲9.33
Media Library /wp-admin/upload.php1,411 ▲114.20 ▼0.08101.90 ▼8.8380.55 ▲31.41

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, 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 take a closer look at the following
  • 1× 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/seos-social-icons/seos-social-icons.php:12

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 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
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (Admin Panel view of submitted form data.) image missing
The official readme.txt is a good inspiration

seos-social-icons/seos-social-icons.php Passed 13 tests

Analyzing the main PHP file in "Seos Social Icons" version 1.0
66 characters long description:
Seos Social Icons WordPress plugin add Social Icons in your theme.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin204 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1509129
CSS213075

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.22
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
11 PNG files occupy 0.10MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/twitter.png3.51KB1.66KB▼ 52.85%
images/vimeo.png3.63KB1.66KB▼ 54.36%
images/tumblr.png2.82KB1.05KB▼ 62.67%
images/icon.png1.58KB1.43KB▼ 9.69%
images/fb.png2.70KB0.96KB▼ 64.39%