79% simple-socnets

Code Review | Simple Socnets

WordPress plugin Simple Socnets scored79%from 54 tests.

About plugin

  • Plugin page: simple-socnets
  • Plugin version: 1.0.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.5.2
  • WordPress version: 6.3.1
  • First release: Jun 27, 2013
  • Latest release: Jun 30, 2013
  • Number of updates: 5
  • Update frequency: every 0.8 days
  • Top authors: hotchkissconsulting (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

10+ active /1,340 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.31MB] [CPU: ▼14.79ms] Passed 4 tests

Server-side resources used by Simple Socnets
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.45 ▼0.0235.33 ▼5.63
Dashboard /wp-admin3.33 ▲0.0246.12 ▼6.12
Posts /wp-admin/edit.php3.38 ▲0.0246.25 ▼0.32
Add New Post /wp-admin/post-new.php4.62 ▼1.2745.86 ▼46.36
Media Library /wp-admin/upload.php3.25 ▲0.0234.83 ▼1.04
Simple Socnets /wp-admin/options-general.php?page=simple-socnet-global-settings3.1930.71

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Simple Socnets
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲714.24 ▼0.251.79 ▼0.1545.53 ▼0.48
Dashboard /wp-admin2,202 ▲315.64 ▲0.0994.88 ▼9.7241.62 ▼0.80
Posts /wp-admin/edit.php2,101 ▲12.00 ▲0.0233.95 ▼3.8636.44 ▲0.84
Add New Post /wp-admin/post-new.php1,531 ▲323.56 ▲0.54672.51 ▲53.4757.21 ▲0.09
Media Library /wp-admin/upload.php1,407 ▲74.23 ▲0.0395.61 ▼5.1344.16 ▲2.23
Simple Socnets /wp-admin/options-general.php?page=simple-socnet-global-settings9082.0222.3227.67

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
  • 19 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=simple-socnet-global-settings
    • > Notice in wp-content/plugins/simple-socnets/simple-socnets.php+147
    Trying to access array offset on value of type bool
  • 8 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=simple-socnet-global-settings
    • > Notice in wp-content/plugins/simple-socnets/simple-socnets.php+147
    Trying to access array offset on value of type null

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/simple-socnets/simple-socnets.php:84

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 Passed 29 tests

readme.txt Passed 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
9 plugin tags: delicious, reddit, linkedin, social networks, multisite...

simple-socnets/simple-socnets.php Passed 13 tests

The primary PHP file in "Simple Socnets" version 1.0.2.1 is used by WordPress to initiate all plugin functionality
123 characters long description:
This plugin was built by the Maine WordPress Meetup group to make it really easy to add social network icons to your posts.

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
There were no executable files found in this plugin125 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12811125

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.34
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
210 PNG files occupy 0.17MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
icons/blinklist.png1.09KB0.99KB▼ 9.11%
icons/winksite.png0.74KB0.56KB▼ 23.47%
icons/hugg.png0.30KB0.25KB▼ 17.95%
icons/segnalo.png1.19KB0.72KB▼ 39.34%
icons/gmail.png0.20KB0.19KB▼ 4.88%