83% eventtracking-for-statpress

Code Review | EventTracking for StatPress

WordPress plugin EventTracking for StatPress scored83%from 54 tests.

About plugin

  • Plugin page: eventtracking-for...
  • Plugin version: 0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1+
  • WordPress version: 6.3.1
  • First release: Mar 3, 2015
  • Latest release: Mar 9, 2015
  • Number of updates: 6
  • Update frequency: every 2.0 days
  • Top authors: jocnetwork (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,011 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.32ms] Passed 4 tests

An overview of server-side resources used by EventTracking for StatPress
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.90 ▼1.23
Dashboard /wp-admin3.31 ▲0.0043.95 ▲1.47
Posts /wp-admin/edit.php3.36 ▲0.0042.69 ▼2.07
Add New Post /wp-admin/post-new.php5.89 ▲0.0077.91 ▼19.45
Media Library /wp-admin/upload.php3.23 ▲0.0035.57 ▲3.78

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for EventTracking for StatPress
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.39 ▲0.112.07 ▲0.3943.77 ▼1.47
Dashboard /wp-admin2,198 ▲185.61 ▼0.0383.15 ▼2.9539.67 ▲1.69
Posts /wp-admin/edit.php2,097 ▼32.03 ▲0.0735.39 ▼7.3332.71 ▼7.52
Add New Post /wp-admin/post-new.php1,526 ▼023.68 ▲0.47677.19 ▲90.4351.84 ▼1.11
Media Library /wp-admin/upload.php1,397 ▼64.21 ▲0.02102.11 ▲6.2542.86 ▲0.06

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-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
The following issues need your attention
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/eventtracking-for-statpress/dl-checker-function.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/eventtracking-for-statpress/view/DlCheckerTop.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% 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:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === eventtracking-for-statpress === )
  • Tested up to: Invalid version format
The official readme.txt is a good inspiration

eventtracking-for-statpress/dl-checker-function.php 92% from 13 tests

Analyzing the main PHP file in "EventTracking for StatPress" version 0.6
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("eventtracking-for-statpress.php" instead of "dl-checker-function.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin251 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP58697141
CSS11070
PO File110240

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.17
Average class complexity3.50
▷ Minimum class complexity1.00
▷ Maximum class complexity6.00
Average method complexity1.56
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
1 PNG file occupies 0.04MB with 0.04MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
clock-frame.png41.24KB0.73KB▼ 98.22%