83% wp-popup-social-link-and-content-share

Code Review | WP Popup Social Link and Content Share

WordPress plugin WP Popup Social Link and Content Share scored83%from 54 tests.

About plugin

  • Plugin page: wp-popup-social-l...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.0
  • WordPress version: 6.3.1
  • First release: Jan 16, 2015
  • Latest release: Jan 16, 2015
  • Number of updates: 9
  • Update frequency: every 0.1 days
  • Top authors: Studentbd (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,156 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼8.48ms] Passed 4 tests

A check of server-side resources used by WP Popup Social Link and Content Share
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0144.43 ▼4.10
Dashboard /wp-admin3.32 ▼0.0253.94 ▼16.61
Posts /wp-admin/edit.php3.37 ▲0.0251.86 ▼1.36
Add New Post /wp-admin/post-new.php5.90 ▲0.0285.95 ▼11.85
Media Library /wp-admin/upload.php3.24 ▲0.0140.44 ▲3.16

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for WP Popup Social Link and Content Share
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,926 ▲16513.81 ▼0.759.14 ▲6.9544.48 ▼0.73
Dashboard /wp-admin2,200 ▲235.68 ▼0.0184.87 ▼13.1138.43 ▼4.14
Posts /wp-admin/edit.php2,102 ▲22.00 ▼0.0637.83 ▲0.9134.94 ▲0.44
Add New Post /wp-admin/post-new.php1,528 ▲217.75 ▲0.06670.10 ▼16.1261.50 ▲4.81
Media Library /wp-admin/upload.php1,399 ▼44.20 ▼0.0195.83 ▼6.7642.82 ▼4.98

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-popup-social-link-and-content-share/index.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Contributors: Plugin contributors field is missing
You can take inspiration from this readme.txt

wp-popup-social-link-and-content-share/index.php 85% from 13 tests

The primary PHP file in "WP Popup Social Link and Content Share" version 1.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 190 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-popup-social-link-and-content-share.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected868 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
CSS5113143468
JavaScript54937330
PHP114870

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
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%
Functions7
▷ Named functions7100.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
2 PNG files occupy 0.11MB with 0.07MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
custom-icon.png6.78KB2.14KB▼ 68.39%
assets/images/social-sprite.png110.61KB49.95KB▼ 54.84%