89% informvisitors

Code Review | informvisitors

WordPress plugin informvisitors scored89%from 54 tests.

About plugin

  • Plugin page: informvisitors
  • Plugin version: 2.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5 or Higher-5.7.1
  • WordPress version: 6.3.1
  • First release: Jun 2, 2016
  • Latest release: Jul 8, 2021
  • Number of updates: 18
  • Update frequency: every 103.4 days
  • Top authors: atiprashant (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

This is a short check of server-side resources used by informvisitors
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.20 ▼7.26
Dashboard /wp-admin3.35 ▲0.0453.95 ▲6.03
Posts /wp-admin/edit.php3.40 ▲0.0449.90 ▼1.47
Add New Post /wp-admin/post-new.php5.93 ▲0.0489.65 ▼9.45
Media Library /wp-admin/upload.php3.27 ▲0.0437.11 ▼0.07
Informvisitors /wp-admin/options-general.php?page=informvisitors3.2436.72

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for informvisitors
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,826 ▲4014.35 ▼0.012.43 ▲0.5642.74 ▲0.02
Dashboard /wp-admin2,196 ▲195.56 ▲0.0592.76 ▲1.8539.16 ▲1.19
Posts /wp-admin/edit.php2,104 ▲42.00 ▼0.0435.88 ▼0.8231.80 ▼7.81
Add New Post /wp-admin/post-new.php1,530 ▲423.13 ▲0.08674.90 ▲13.2953.02 ▼0.12
Media Library /wp-admin/upload.php1,404 ▲14.19 ▼0.1896.42 ▼6.7540.95 ▼2.13
Informvisitors /wp-admin/options-general.php?page=informvisitors8691.9922.2329.17

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

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
Everything seems fine, however this is by no means an exhaustive test

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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Requires at least: Version not formatted correctly
The official readme.txt is a good inspiration

informvisitors/informvisitors.php 85% from 13 tests

Analyzing the main PHP file in "informvisitors" version 2.7
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 270 characters long)
  • Requires at least: Periods and digits should be used for the required version number (ex. "7.0" instead of "4.5 or Higher")

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
No dangerous file extensions were detected336 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP813475336

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.41
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
12 PNG files occupy 1.15MB with 0.79MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-6.png154.77KB44.88KB▼ 71.00%
assets/screenshot-3.png132.53KB35.99KB▼ 72.85%
assets/icon-128x128.png5.03KB1.93KB▼ 61.54%
assets/screenshot-1.png75.21KB28.15KB▼ 62.57%
assets/screenshot-2.png54.07KB13.50KB▼ 75.02%