84% conversions-popup-widget

Code Review | Conversions Popup Widget

WordPress plugin Conversions Popup Widget scored84%from 54 tests.

About plugin

  • Plugin page: conversions-popup...
  • Plugin version: 1.0
  • PHP compatiblity: 5.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.9
  • WordPress version: 6.3.1
  • First release: Mar 2, 2018
  • Latest release: Mar 2, 2018
  • Number of updates: 11
  • Update frequency: N/A
  • Top authors: fuertedev01 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /587 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.01MB] [CPU: ▼3.46ms] Passed 4 tests

A check of server-side resources used by Conversions Popup Widget
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.96 ▲4.07
Dashboard /wp-admin3.32 ▲0.0145.08 ▼4.48
Posts /wp-admin/edit.php3.37 ▲0.0144.30 ▼0.79
Add New Post /wp-admin/post-new.php5.90 ▲0.0181.50 ▼5.56
Media Library /wp-admin/upload.php3.24 ▲0.0136.11 ▼3.01

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
db_upgraded
widget_recent-comments
widget_conversions_popup_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Conversions Popup Widget
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,895 ▲13413.46 ▼0.928.92 ▲7.3643.37 ▲1.25
Dashboard /wp-admin2,192 ▲155.52 ▼0.1582.10 ▼3.8538.34 ▼2.28
Posts /wp-admin/edit.php2,100 ▼01.99 ▲0.0134.75 ▼3.0533.78 ▼5.27
Add New Post /wp-admin/post-new.php1,526 ▼023.51 ▲0.01676.23 ▼35.2953.19 ▼16.37
Media Library /wp-admin/upload.php1,403 ▲34.17 ▼0.0298.66 ▲3.1544.85 ▼1.07

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
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_conversions_popup_widget
    • can_compress_scripts
    • widget_theysaidso_widget

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/conversions-popup-widget/conversions-popup-widget.php:13

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: google spreadsheet, marketing, conversions, popup, popup widget...

conversions-popup-widget/conversions-popup-widget.php Passed 13 tests

The main PHP file in "Conversions Popup Widget" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
84 characters long description:
This plugin adds a popup with the last conversions loaded from a Google Spreadsheet.

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
There were no executable files found in this plugin349 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP14439277
CSS110651
JavaScript11921

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity33.00
▷ Minimum class complexity33.00
▷ Maximum class complexity33.00
Average method complexity6.33
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.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
PNG images were not found in this plugin