84% coconuttickets

Code Review | Sell Event Tickets On WordPress - Plugin for Coconut Tickets

WordPress plugin Sell Event Tickets On WordPress - Plugin for Coconut Tickets scored84%from 54 tests.

About plugin

  • Plugin page: coconuttickets
  • Plugin version: 1.3
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-5.7
  • WordPress version: 6.3.1
  • First release: Mar 27, 2017
  • Latest release: Mar 11, 2021
  • Number of updates: 41
  • Update frequency: every 35.2 days
  • Top authors: coconuttickets (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

10+ active /1,792 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.52ms] Passed 4 tests

An overview of server-side resources used by Sell Event Tickets On WordPress - Plugin for Coconut Tickets
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0237.58 ▼5.24
Dashboard /wp-admin3.34 ▲0.0346.84 ▼4.58
Posts /wp-admin/edit.php3.39 ▲0.0348.62 ▲3.21
Add New Post /wp-admin/post-new.php5.94 ▲0.0594.51 ▼5.93
Media Library /wp-admin/upload.php3.26 ▲0.0337.20 ▲1.66

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Sell Event Tickets On WordPress - Plugin for Coconut Tickets
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,916 ▲17013.93 ▼0.638.24 ▲6.4538.15 ▼5.09
Dashboard /wp-admin2,244 ▲585.86 ▲0.92100.32 ▼22.4581.23 ▲34.70
Posts /wp-admin/edit.php2,127 ▲382.06 ▲0.0241.46 ▲4.6837.50 ▲3.19
Add New Post /wp-admin/post-new.php1,542 ▲2817.77 ▲0.22631.93 ▼53.6651.59 ▼4.62
Media Library /wp-admin/upload.php1,423 ▲354.18 ▼0.01100.32 ▼9.2186.10 ▲37.48

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 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/coconuttickets/coconuttickets.php:23

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Tags: There are too many tags (28 tag instead of maximum 10)
You can look at the official readme.txt

coconuttickets/coconuttickets.php 92% from 13 tests

The main PHP file in "Sell Event Tickets On WordPress - Plugin for Coconut Tickets" 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:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 192 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin160 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP23745144
JavaScript231011
CSS1005

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity1.56
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods888.89%
▷ Protected methods111.11%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
4 PNG files occupy 0.18MB with 0.11MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/icon_bg.png82.44KB29.02KB▼ 64.80%
assets/banner-772x250.png76.31KB25.60KB▼ 66.45%
img/coconuttickets_icon.png1.29KB0.53KB▼ 58.70%
assets/screenshot-1.PNG27.52KB13.88KB▼ 49.56%