73% popup-to-share

Code Review | Popup to Share

WordPress plugin Popup to Share scored73%from 54 tests.

About plugin

  • Plugin page: popup-to-share
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0-3.7.1
  • WordPress version: 6.3.1
  • First release: Sep 15, 2012
  • Latest release: Dec 22, 2013
  • Number of updates: 28
  • Update frequency: every 16.6 days
  • Top authors: Miguelo2008 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /11,717 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.93MB] [CPU: ▼33.18ms] Passed 4 tests

A check of server-side resources used by Popup to Share
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0460.75 ▲18.12
Dashboard /wp-admin3.01 ▼0.2928.56 ▼25.40
Posts /wp-admin/edit.php3.01 ▼0.3422.87 ▼26.37
Add New Post /wp-admin/post-new.php3.01 ▼2.8724.79 ▼68.72
Media Library /wp-admin/upload.php3.01 ▼0.2224.68 ▼12.22

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-comments
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Popup to Share
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲8714.45 ▲0.089.37 ▲7.5142.47 ▼4.41
Dashboard /wp-admin2,230 ▲425.85 ▲0.05114.37 ▼2.4942.29 ▼5.21
Posts /wp-admin/edit.php2,115 ▲232.65 ▲0.6742.65 ▲3.7330.32 ▼4.14
Add New Post /wp-admin/post-new.php1,529 ▲1017.62 ▼5.47711.13 ▲16.6451.46 ▼3.19
Media Library /wp-admin/upload.php1,412 ▲275.21 ▲0.99112.22 ▲3.5845.87 ▼2.78

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin cannot be uninstalled
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/popup-to-share/mplugin.php:159

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Tags: You are using too many tags: 13 tag instead of maximum 10
  • Screenshots: These screenshots require images: #1 (This image shows the Plugin running), #2 (This image show the panel to optimize the plugin)
You can take inspiration from this readme.txt

popup-to-share/mplugin.php 92% from 13 tests

The main PHP file in "Popup to Share" ver. 1.3 adds more information about the plugin and also serves as the entry point for this plugin
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 ("popup-to-share.php" instead of "mplugin.php")

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
Success! There were no dangerous files found in this plugin279 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1668177
CSS19098
JavaScript1104

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.16
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.03MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
close.png27.90KB2.01KB▼ 92.81%