90% internet-speed-test

Code Review | Internet Speed Test

WordPress plugin Internet Speed Test scored 90% from 54 tests.

About plugin

  • Plugin page: internet-speed-test
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.7
  • WordPress version: 6.3.1
  • First release: Aug 6, 2018
  • Latest release: Mar 7, 2021
  • Number of updates: 10
  • Update frequency: every 94.7 days
  • Top authors: vyskoczilova (60%)meternet (50%)

Code review

54 tests

User reviews

1 review

Install metrics

600+ active / 4,907 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
Installer ran successfully

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

Analyzing server-side resources used by Internet Speed Test
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.70 ▼2.40
Dashboard /wp-admin3.32 ▲0.0146.60 ▼2.00
Posts /wp-admin/edit.php3.37 ▲0.0147.90 ▲2.46
Add New Post /wp-admin/post-new.php5.90 ▲0.0181.16 ▼19.55
Media Library /wp-admin/upload.php3.24 ▲0.0135.46 ▼0.77

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Internet Speed Test
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.22 ▼1.365.38 ▲3.7043.64 ▲1.57
Dashboard /wp-admin2,206 ▲215.86 ▲0.05106.54 ▲0.1738.23 ▲1.54
Posts /wp-admin/edit.php2,068 ▼02.05 ▼0.0136.33 ▼1.9231.26 ▼4.81
Add New Post /wp-admin/post-new.php1,544 ▲1018.46 ▼4.72605.16 ▲7.5683.69 ▲30.44
Media Library /wp-admin/upload.php1,391 ▲124.24 ▲0.0497.53 ▼6.2941.78 ▼0.89

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: connection speed, connection test, bandwidth, speed test, speedtest

internet-speed-test/internet-speed-test.php Passed 13 tests

The entry point to "Internet Speed Test" version 1.0.0 is a PHP file that has certain tags in its header comment area
75 characters long description:
The plugin allows you to embed speed test for your website via a shortcode.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin41 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1141441

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.53
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin