89% plugin-activation-tracker

Code Review | Plugin Activation Tracker

WordPress plugin Plugin Activation Tracker scored89%from 54 tests.

About plugin

  • Plugin page: plugin-activation...
  • Plugin version: 3.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Feb 13, 2020
  • Latest release: Nov 4, 2022
  • Number of updates: 19
  • Update frequency: every 52.4 days
  • Top authors: galaxyweblinks (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,872 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.03MB] [CPU: ▼1.31ms] Passed 4 tests

Server-side resources used by Plugin Activation Tracker
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1741.85 ▼2.95
Dashboard /wp-admin3.34 ▲0.0348.04 ▼5.55
Posts /wp-admin/edit.php3.39 ▲0.0350.72 ▼0.66
Add New Post /wp-admin/post-new.php5.92 ▲0.0396.03 ▲3.97
Media Library /wp-admin/upload.php3.26 ▲0.0339.45 ▲3.91

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: 1 new table, 9 new options
New tables
wp_pat_plugin_status
New WordPress options
pat_display_after_days_remove_record_gwl
pat_activated_plugins_gwl
db_upgraded
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
pat_display_relative_date_gwl

Browser metrics Passed 4 tests

Checking browser requirements for Plugin Activation Tracker
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.23 ▼0.491.89 ▲0.1548.20 ▲4.15
Dashboard /wp-admin2,198 ▲185.63 ▲0.0592.04 ▼5.5440.61 ▼4.07
Posts /wp-admin/edit.php2,103 ▲32.00 ▲0.0242.11 ▲4.7235.78 ▼0.56
Add New Post /wp-admin/post-new.php1,531 ▲322.90 ▼0.13653.63 ▲2.5258.99 ▲3.50
Media Library /wp-admin/upload.php1,400 ▼34.26 ▲0.1397.11 ▼2.9545.39 ▲0.04

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • pat_display_after_days_remove_record_gwl
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Requires php: Invalid version format
  • Requires at least: Invalid version format
You can look at the official readme.txt

plugin-activation-tracker/plugin-activation-tracker.php 92% from 13 tests

The main PHP script in "Plugin Activation Tracker" version 3.1 is automatically included on every request by WordPress
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 161 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin242 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP371137242

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity30.00
▷ Minimum class complexity30.00
▷ Maximum class complexity30.00
Average method complexity2.93
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.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