78% analytics-tickera

Code Review | Analytics for Tickera

WordPress plugin Analytics for Tickera scored78%from 54 tests.

About plugin

  • Plugin page: analytics-tickera
  • Plugin version: 1.00
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-6.0
  • WordPress version: 6.3.1
  • First release: Jun 16, 2022
  • Latest release: Jun 18, 2022
  • Number of updates: 10
  • Update frequency: every 1.0 days
  • Top authors: inferus (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /322 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼15.51ms] Passed 4 tests

Analyzing server-side resources used by Analytics for Tickera
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.07 ▼12.65
Dashboard /wp-admin3.33 ▼0.0246.97 ▼21.16
Posts /wp-admin/edit.php3.38 ▲0.0250.26 ▼5.22
Add New Post /wp-admin/post-new.php5.91 ▲0.0291.39 ▼23.01
Media Library /wp-admin/upload.php3.25 ▲0.0237.35 ▲0.14
Analytics /wp-admin/edit.php?post_type=tc_events&page=analytics-tickera3.0226.49

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Analytics for Tickera: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲2914.41 ▼0.391.64 ▼0.3338.57 ▲0.39
Dashboard /wp-admin2,224 ▲275.91 ▲0.0297.44 ▼10.5936.46 ▼10.25
Posts /wp-admin/edit.php2,097 ▼62.01 ▼0.0035.12 ▼8.3435.55 ▼0.98
Add New Post /wp-admin/post-new.php1,540 ▼723.46 ▲0.13631.07 ▼15.1472.24 ▼6.86
Media Library /wp-admin/upload.php1,397 ▼04.25 ▼0.0299.42 ▼2.0142.49 ▲1.04
Analytics /wp-admin/edit.php?post_type=tc_events&page=analytics-tickera280.440.114.36

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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 following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/analytics-tickera/analytics-tickera.php:12

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
    • > GET request to /wp-admin/edit.php?post_type=tc_events&page=analytics-tickera
    • > Network (severe)
    wp-admin/edit.php?post_type=tc_events&page=analytics-tickera - Failed to load resource: the server responded with a status of 403 (Forbidden)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === analytics-tickera === )
  • Tags: There are too many tags (19 tag instead of maximum 10)
  • Screenshots: Please add descriptions for these screenshots #1, #2 in analytics-tickera/assets to your readme.txt
The official readme.txt is a good inspiration

analytics-tickera/analytics-tickera.php Passed 13 tests

Analyzing the main PHP file in "Analytics for Tickera" version 1.00
54 characters long description:
Shows the number of tickets sold by event and category

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected92 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1301092

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.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
No PNG files were detected