10% tsu-popup

Code Review | Tsu Popup

WordPress plugin Tsu Popup scored10%from 54 tests.

About plugin

  • Plugin page: tsu-popup
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0-4.0
  • WordPress version: 6.3.1
  • First release: Jan 26, 2015
  • Latest release: Jan 26, 2015
  • Number of updates: 7
  • Update frequency: N/A
  • Top authors: nirob.19 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,221 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
  • The plugin cannot be installed
    • > Warning in wp-content/plugins/tsu-popup/tsu-popup.php+295
    Use of undefined constant tsu_content_settings - assumed 'tsu_content_settings' (this will throw an Error in a future version of PHP)

Server metrics [RAM: ▼1.79MB] [CPU: ▼58.59ms] Passed 4 tests

A check of server-side resources used by Tsu Popup
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.21 ▼1.264.93 ▼35.70
Dashboard /wp-admin2.23 ▼1.126.98 ▼53.68
Posts /wp-admin/edit.php2.23 ▼1.135.63 ▼40.05
Add New Post /wp-admin/post-new.php2.23 ▼3.666.58 ▼104.91
Media Library /wp-admin/upload.php2.23 ▼1.005.69 ▼28.33

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 9 new options
New WordPress options
theysaidso_admin_options
tsu_display_settings
widget_recent-posts
db_upgraded
can_compress_scripts
tsu_control_settings
widget_recent-comments
widget_theysaidso_widget
tsu_content_settings

Browser metrics Passed 4 tests

This is an overview of browser requirements for Tsu Popup
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,043 ▲29713.89 ▼0.517.57 ▲5.7149.44 ▲9.53
Dashboard /wp-admin2,241 ▲535.13 ▲0.24102.98 ▼12.8183.54 ▲35.46
Posts /wp-admin/edit.php2,140 ▲512.39 ▲0.4038.35 ▲2.0838.55 ▲3.85
Add New Post /wp-admin/post-new.php1,541 ▲2217.99 ▼5.20672.75 ▲77.0734.30 ▼15.43
Media Library /wp-admin/upload.php1,418 ▲274.48 ▲0.2997.02 ▼1.4989.41 ▲47.11

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Uninstall procedure had uncaught errors
    • > Warning in wp-content/plugins/tsu-popup/tsu-popup.php+295
    Use of undefined constant tsu_content_settings - assumed 'tsu_content_settings' (this will throw an Error in a future version of PHP)
  • This plugin did not uninstall successfully, leaving 9 options in the database
    • can_compress_scripts
    • tsu_content_settings
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • tsu_control_settings
    • tsu_display_settings

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tsu-popup/tsu-popup.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === tsu-popup === )
The official readme.txt might help

tsu-popup/tsu-popup.php Passed 13 tests

The main PHP file in "Tsu Popup" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
57 characters long description:
Add your own tsu ( Social Network ) popup in any website.

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
There were no executable files found in this plugin704 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2157175704

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity23.50
▷ Minimum class complexity3.00
▷ Maximum class complexity44.00
Average method complexity2.41
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods32
▷ Static methods00.00%
▷ Public methods32100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.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
9 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/2.png2.58KB1.58KB▼ 38.79%
images/9.png1.46KB0.84KB▼ 42.24%
images/3.png2.01KB1.38KB▼ 31.44%
images/6.png2.88KB1.67KB▼ 41.95%
images/7.png2.74KB1.65KB▼ 39.81%