88% instascaler-get-traffic

Code Review | InstaScaler - Get Traffic

WordPress plugin InstaScaler - Get Traffic scored 88% from 54 tests.

About plugin

  • Plugin page: instascaler-get-t...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.0
  • WordPress version: 5.8.1
  • First release: Dec 20, 2018
  • Latest release: Dec 20, 2018
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: cognitev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 403 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼153.19ms] Passed 4 tests

Analyzing server-side resources used by InstaScaler - Get Traffic
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.89 ▲0.1733.98 ▲10.58
Dashboard /wp-admin3.11 ▲0.0649.36 ▲0.08
Posts /wp-admin/edit.php3.22 ▲0.1234.78 ▼22.23
Add New Post /wp-admin/post-new.php5.47 ▲0.0493.34 ▼567.46
Media Library /wp-admin/upload.php3.05 ▲0.0531.14 ▼23.14
Instascaler /wp-admin/admin.php?page=instawp-top-level-handle3.0227.21
Support /wp-admin/admin.php?page=instawp-contact-us-page3.0229.06

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 26 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for InstaScaler - Get Traffic
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /5,502 ▲1,90617.15 ▲1.2412.36 ▲4.3045.47 ▼7.70
Dashboard /wp-admin4,660 ▲1,7237.19 ▲1.08211.96 ▲42.31113.10 ▼20.97
Posts /wp-admin/edit.php4,172 ▲1,4333.16 ▲0.46119.91 ▲43.95126.65 ▲18.24
Add New Post /wp-admin/post-new.php2,946 ▲1,26319.26 ▲0.82423.60 ▲4.61120.13 ▲0.90
Media Library /wp-admin/upload.php2,883 ▲1,0765.68 ▲0.69160.92 ▼35.61135.24 ▼12.40
Instascaler /wp-admin/admin.php?page=instawp-top-level-handle1,2182.0696.4389.45
Support /wp-admin/admin.php?page=instawp-contact-us-page1,7332.8583.9764.53

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/instascaler-get-traffic/public/partials/instawp-public-display.php
    • > /wp-content/plugins/instascaler-get-traffic/admin/partials/instawp-admin-display.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
    • > GET request to /wp-admin/admin.php?page=instawp-top-level-handle
    • > Network (severe)
    https://dashboard-testing.instascaler.com/48318a525c0e0382eea01ba5dac983fb.png - Failed to load resource: the server responded with a status of 522 ()

Optimizations

Plugin configuration 90% 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
These attributes need to be fixed:
  • Donate link: Please fix this invalid url: ""
You can look at the official readme.txt

instascaler-get-traffic/instawp.php 85% from 13 tests

The main PHP script in "InstaScaler - Get Traffic" version 1.0.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: The principal plugin file should be the same as the plugin slug ("instascaler-get-traffic.php" instead of "instawp.php")

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 detected915 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
CSS38816587
PHP12123523190
JavaScript41233138

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.08
Average class complexity1.43
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.13
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods23
▷ Static methods28.70%
▷ Public methods1878.26%
▷ Protected methods00.00%
▷ Private methods521.74%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.12MB with 0.07MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/images/signup-img.png122.03KB52.95KB▼ 56.61%