90% wp-signals

Code Review | WP Signals

WordPress plugin WP Signals scored90%from 54 tests.

About plugin

  • Plugin page: wp-signals
  • Plugin version: 2.0.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-5.6
  • WordPress version: 6.3.1
  • First release: Dec 26, 2020
  • Latest release: May 6, 2021
  • Number of updates: 10
  • Update frequency: every 13.2 days
  • Top authors: romelprashad (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /479 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.39MB] [CPU: ▼0.14ms] Passed 4 tests

An overview of server-side resources used by WP Signals
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.11 ▲0.6445.00 ▲5.50
Dashboard /wp-admin3.67 ▲0.3751.16 ▲2.39
Posts /wp-admin/edit.php3.79 ▲0.4349.58 ▼5.33
Add New Post /wp-admin/post-new.php6.27 ▲0.3898.51 ▼2.93
Media Library /wp-admin/upload.php3.60 ▲0.3640.93 ▲5.33

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 70 new files
Database: no new tables, 10 new options
New WordPress options
theysaidso_admin_options
wp-signals-configuration-app-analytics
wp-signals-configuration-app-setup
wp-signals-configuration-app-id
wp-signals-configuration-app-data-fields
db_upgraded
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by WP Signals
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲8113.19 ▼1.111.77 ▼0.6039.30 ▼8.61
Dashboard /wp-admin2,222 ▲374.92 ▼0.04107.54 ▼4.5042.36 ▼4.92
Posts /wp-admin/edit.php2,105 ▲132.05 ▼0.1139.56 ▼6.6432.07 ▼7.71
Add New Post /wp-admin/post-new.php1,528 ▼523.50 ▲0.29653.39 ▼90.9254.64 ▲2.98
Media Library /wp-admin/upload.php1,404 ▲194.26 ▲0.01112.29 ▲3.6743.70 ▲1.12

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: facebook pixel events, facebook conversions api, facebook pixel, facebook javascript pixel

wp-signals/wp-signals.php 92% from 13 tests

The entry point to "WP Signals" version 2.0.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Domain Path: The domain path should use only dashes and lowercase characters ("/Languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin3,902 lines of code in 34 files:
LanguageFilesBlank linesComment linesLines of code
PHP227927152,310
CSS4113535
LESS21699528
JavaScript512319504
PO File13625

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.71
Average class complexity30.06
▷ Minimum class complexity1.00
▷ Maximum class complexity171.00
Average method complexity6.89
▷ Minimum method complexity1.00
▷ Maximum method complexity35.00
Code structure
Namespaces6
Interfaces0
Traits0
Classes17
▷ Abstract classes00.00%
▷ Concrete classes17100.00%
▷ Final classes00.00%
Methods82
▷ Static methods2024.39%
▷ Public methods5870.73%
▷ Protected methods00.00%
▷ Private methods2429.27%
Functions11
▷ Named functions436.36%
▷ Anonymous functions763.64%
Constants10
▷ Global constants440.00%
▷ Class constants660.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
27 PNG files occupy 0.26MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
Admin/assets/icons/faq.png12.73KB5.24KB▼ 58.88%
Admin/assets/icons/pixel-wizard.png9.72KB4.32KB▼ 55.58%
Admin/assets/icons/question.png11.67KB5.42KB▼ 53.53%
Admin/assets/icons/hourglass.png6.63KB3.15KB▼ 52.42%
Admin/assets/icons/facebook.png1.73KB0.98KB▼ 43.35%