84% wp-internetvista

Code Review | Website Monitoring by internetVista

WordPress plugin Website Monitoring by internetVista scored84%from 54 tests.

About plugin

  • Plugin page: wp-internetvista
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0+
  • WordPress version: 6.3.1
  • First release: Jun 15, 2015
  • Latest release: Sep 22, 2023
  • Number of updates: 27
  • Update frequency: every 112.0 days
  • Top authors: internetvista (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /1,447 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
Install script ran successfully

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

An overview of server-side resources used by Website Monitoring by internetVista
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.69 ▼2.12
Dashboard /wp-admin3.31 ▲0.0043.35 ▼4.77
Posts /wp-admin/edit.php3.36 ▲0.0045.45 ▼19.87
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.00 ▼12.23
Media Library /wp-admin/upload.php3.23 ▲0.0036.11 ▲2.26

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Website Monitoring by internetVista
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.76 ▼0.621.57 ▼0.0138.94 ▼4.42
Dashboard /wp-admin2,209 ▲214.86 ▼0.0098.51 ▼11.8940.65 ▼5.89
Posts /wp-admin/edit.php2,089 ▼02.00 ▲0.0140.01 ▼0.8835.91 ▼1.93
Add New Post /wp-admin/post-new.php1,542 ▲2118.31 ▼4.95619.85 ▼47.2349.73 ▼2.64
Media Library /wp-admin/upload.php1,388 ▲34.25 ▲0.0696.31 ▼6.2442.10 ▼4.94

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • 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
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-internetvista/wp-internetvista.php:160

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% 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
Please fix the following attributes:
  • Tested up to: Version not formatted correctly
You can look at the official readme.txt

wp-internetvista/wp-internetvista.php 92% from 13 tests

The main PHP file in "Website Monitoring by internetVista" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 147 characters long)

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
Everything looks great! No dangerous files found in this plugin2,654 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP22422251,181
JavaScript2725789
PO File4260368580
CSS1162104

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity60.33
▷ Minimum class complexity1.00
▷ Maximum class complexity148.00
Average method complexity3.87
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods62
▷ Static methods00.00%
▷ Public methods4267.74%
▷ Protected methods1320.97%
▷ Private methods711.29%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants00.00%
▷ Class constants8100.00%
▷ Public constants8100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/iv-27x27.png1.37KB0.76KB▼ 44.15%
assets/iv-32x32.png1.68KB0.94KB▼ 44.17%
assets/iv-16x16.png0.69KB0.43KB▼ 37.82%