84% wp-tag-manager-event

Code Review | WP Tag Manager Event

WordPress plugin WP Tag Manager Event scored84%from 54 tests.

About plugin

  • Plugin page: wp-tag-manager-event
  • Plugin version: 1.0
  • PHP compatiblity: 7.1.16+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.0.2
  • WordPress version: 6.3.1
  • First release: Jan 14, 2019
  • Latest release: Jan 14, 2019
  • Number of updates: 5
  • Update frequency: every 0.8 days
  • Top authors: doctorwp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /565 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

An overview of server-side resources used by WP Tag Manager Event
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0437.02 ▼3.35
Dashboard /wp-admin3.34 ▼0.0044.49 ▼13.74
Posts /wp-admin/edit.php3.39 ▲0.0345.18 ▼4.81
Add New Post /wp-admin/post-new.php5.94 ▲0.05103.74 ▲9.65
Media Library /wp-admin/upload.php3.27 ▲0.0335.56 ▲0.11
WP Tag Manager Event /wp-admin/options-general.php?page=wptme-page3.2731.38

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 12 new files
Database: 1 new table, 6 new options
New tables
wp_wptme
New WordPress options
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for WP Tag Manager Event
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,914 ▲17913.65 ▼0.645.31 ▲3.3642.33 ▼1.07
Dashboard /wp-admin2,212 ▲204.87 ▼0.2399.50 ▼16.7739.57 ▼3.14
Posts /wp-admin/edit.php2,095 ▲32.03 ▲0.0140.98 ▼2.7135.29 ▼2.25
Add New Post /wp-admin/post-new.php1,542 ▼018.06 ▼0.01604.86 ▼9.5155.45 ▼0.27
Media Library /wp-admin/upload.php1,394 ▲34.23 ▲0.0299.00 ▲2.6640.78 ▼4.47
WP Tag Manager Event /wp-admin/options-general.php?page=wptme-page8792.0825.1934.33

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

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
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to a member function all() on null in wp-content/plugins/wp-tag-manager-event/wptme_index.php:26
    • > PHP Notice
      Undefined index: WpTme in wp-content/plugins/wp-tag-manager-event/wptme_index.php on line 26

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Donate link: Please fix this invalid url: ""
You can look at the official readme.txt

wp-tag-manager-event/wp-tag-manager-event.php Passed 13 tests

Analyzing the main PHP file in "WP Tag Manager Event" version 1.0
46 characters long description:
Save and Consult All Event on Google Analytics

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
Good job! No executable or dangerous file extensions detected551 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript3550281
PHP3579209
PO File2272856
JSON1005

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity2.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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin