89% nertworks-all-in-one-social-share-tools

Code Review | NertWorks All in One Social Share Tools

WordPress plugin NertWorks All in One Social Share Tools scored89%from 54 tests.

About plugin

  • Plugin page: nertworks-all-in-...
  • Plugin version: 1.26
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0-4.0
  • WordPress version: 6.3.1
  • First release: Dec 24, 2013
  • Latest release: Sep 4, 2014
  • Number of updates: 93
  • Update frequency: every 2.7 days
  • Top authors: nertworks (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

60+ active /9,776 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
Installer ran successfully

Server metrics [RAM: ▼0.06MB] [CPU: ▼13.12ms] Passed 4 tests

Server-side resources used by NertWorks All in One Social Share Tools
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1831.45 ▼8.88
Dashboard /wp-admin3.60 ▲0.3048.77 ▼3.36
Posts /wp-admin/edit.php3.65 ▲0.2948.12 ▲2.54
Add New Post /wp-admin/post-new.php4.89 ▼1.0044.53 ▼42.79
Media Library /wp-admin/upload.php3.52 ▲0.2940.41 ▲8.37

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 36 new files
Database: no new tables, 19 new options
New WordPress options
nertworks_social_addthis_stumble_share
nertworks_social_addthis_floating_share
theysaidso_admin_options
widget_recent-posts
nertworks_social_addthis_facebook_like
nert_enable_widget_shortcode
db_upgraded
can_compress_scripts
nertworks_social_addthis_gmail_share
nertworks_social_addthis_myspace_share
...

Browser metrics Passed 4 tests

Checking browser requirements for NertWorks All in One Social Share Tools
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲9213.23 ▼1.391.79 ▼0.2240.92 ▼7.35
Dashboard /wp-admin2,224 ▲334.90 ▼0.96108.94 ▲5.7177.05 ▲35.78
Posts /wp-admin/edit.php2,121 ▲352.25 ▲0.2138.76 ▲2.0336.51 ▲2.76
Add New Post /wp-admin/post-new.php1,682 ▲14922.28 ▼1.14744.41 ▲152.8047.26 ▼1.63
Media Library /wp-admin/upload.php1,416 ▲284.27 ▲0.06100.59 ▲4.2346.03 ▲4.92

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 19 options in the database
    • nertworks_social_addthis_twitter_share_button
    • nertworks_social_addthis_facebook_share
    • nertworks_social_addthis_floating_share
    • can_compress_scripts
    • nertworks_social_addthis_plus_button
    • widget_recent-posts
    • widget_recent-comments
    • nertworks_social_addthis_gmail_share
    • nert_enable_widget_shortcode
    • widget_theysaidso_widget
    • ...

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Tags: You are using too many tags: 16 tag instead of maximum 10
  • Screenshots: These screenshots require images: #1 (Screenshot of the General Settings Page.), #2 (Screenshot of the Custom Icon Management Page.), #3 (Screenshot of the Add This Icons Management Page 1.), #4 (Screenshot of the Add This Icons Management Page 2.), #5 (Screenshot of the Add This Icons Management Page 3.)
You can look at the official readme.txt

nertworks-all-in-one-social-share-tools/nertworks-social-share-tools.php 92% from 13 tests

This is the main PHP file of "NertWorks All in One Social Share Tools" version 1.26, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
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 ("nertworks-all-in-one-social-share-tools.php" instead of "nertworks-social-share-tools.php")

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 plugin1,651 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1252521,605
CSS12046

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.57
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%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 0% from 2 tests

Image compression 0% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
31 PNG files occupy 1.65MB with 1.52MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/addtoany_32.png35.71KB1.98KB▼ 94.46%
images/twitter_logo.png47.46KB5.18KB▼ 89.08%
screenshot-4.png142.10KB10.18KB▼ 92.83%
screenshot-1.png205.80KB33.32KB▼ 83.81%
(invalid) images/no_image.png3.80KB0.00KB▼ 100.00%