10% wp-sensaimetrics

Code Review | WP Sensaimetrics

WordPress plugin WP Sensaimetrics scored10%from 54 tests.

About plugin

  • Plugin page: wp-sensaimetrics
  • Plugin version: 1.2.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.3
  • WordPress version: 6.3.1
  • First release: Oct 29, 2018
  • Latest release: Feb 11, 2020
  • Number of updates: 28
  • Update frequency: every 16.8 days
  • Top authors: sensaidev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /707 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/wp-sensaimetrics/wp-sensaimetrics.php+21
    Constant WP_DEBUG already defined

Server metrics [RAM: ▼1.93MB] [CPU: ▼52.38ms] Passed 4 tests

A check of server-side resources used by WP Sensaimetrics
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.06 ▼1.414.99 ▼32.76
Dashboard /wp-admin2.08 ▼1.236.46 ▼45.97
Posts /wp-admin/edit.php2.08 ▼1.287.20 ▼40.27
Add New Post /wp-admin/post-new.php2.08 ▼3.815.47 ▼90.53
Media Library /wp-admin/upload.php2.08 ▼1.166.14 ▼29.92

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Sensaimetrics
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲8013.60 ▼0.781.86 ▲0.1842.83 ▼8.35
Dashboard /wp-admin2,224 ▲395.84 ▲0.8995.48 ▼9.0779.99 ▲36.73
Posts /wp-admin/edit.php2,104 ▲121.97 ▼0.0939.76 ▼0.6938.02 ▲0.66
Add New Post /wp-admin/post-new.php1,539 ▼018.31 ▼5.00664.14 ▲41.3465.85 ▲12.88
Media Library /wp-admin/upload.php1,406 ▲154.13 ▼0.0496.69 ▼3.0973.12 ▲29.61

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/wp-sensaimetrics/wp-sensaimetrics.php+21
    Constant WP_DEBUG already defined
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • 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
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
1 plugin tags: sensaimetrics

wp-sensaimetrics/wp-sensaimetrics.php Passed 13 tests

The primary PHP file in "WP Sensaimetrics" version 1.2.7 is used by WordPress to initiate all plugin functionality
72 characters long description:
Sensaimetrics connector that avoids connections when logged in wp-admin.

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
Everything looks great! No dangerous files found in this plugin360 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP86345358
Markdown1102

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity5.67
▷ Minimum class complexity1.00
▷ Maximum class complexity15.00
Average method complexity1.93
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods15
▷ Static methods426.67%
▷ Public methods1280.00%
▷ Protected methods00.00%
▷ Private methods320.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/20x20.png0.83KB0.72KB▼ 13.13%