84% hit-sniffer-blog-stats

Code Review | Hit Sniffer Live Blog Analytics

WordPress plugin Hit Sniffer Live Blog Analytics scored84%from 54 tests.

About plugin

  • Plugin page: hit-sniffer-blog-...
  • Plugin version: 2.12
  • PHP version: 7.4.16
  • WordPress compatibility: 1.5-5.0.0
  • WordPress version: 6.3.1
  • First release: Jul 6, 2010
  • Latest release: Nov 10, 2018
  • Number of updates: 320
  • Update frequency: every 9.6 days
  • Top authors: sanarena (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

100+ active /146,167 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Hit Sniffer Live Blog Analytics
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.86 ▼3.59
Dashboard /wp-admin3.31 ▲0.0145.43 ▼2.85
Posts /wp-admin/edit.php3.36 ▲0.0146.05 ▼10.84
Add New Post /wp-admin/post-new.php5.89 ▲0.01107.57 ▼6.06
Media Library /wp-admin/upload.php3.23 ▲0.0033.54 ▲1.58

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Hit Sniffer Live Blog Analytics: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲7013.27 ▼1.411.82 ▲0.0442.94 ▼0.28
Dashboard /wp-admin2,222 ▲345.80 ▼0.1096.48 ▼3.0943.51 ▼3.60
Posts /wp-admin/edit.php2,108 ▲191.99 ▼0.0537.59 ▼3.4235.73 ▼1.21
Add New Post /wp-admin/post-new.php1,558 ▲3018.15 ▼0.00611.66 ▼36.5353.54 ▼0.61
Media Library /wp-admin/upload.php1,398 ▲104.21 ▲0.0499.26 ▲5.7046.18 ▲4.27

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Warning
      include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/hit-sniffer-blog-stats/hitsniffer.php on line 11
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/hit-sniffer-blog-stats/hitsniffer.php on line 11
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/hit-sniffer-blog-stats/hitsniffer.php on line 11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
8 plugin tags: blog, hit, visitor, web, live...

hit-sniffer-blog-stats/hitsniffer.php 92% from 13 tests

"Hit Sniffer Live Blog Analytics" version 2.12's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("hit-sniffer-blog-stats.php" instead of "hitsniffer.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected18 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP119718

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.80
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.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
There were not PNG files found in your plugin