100% shopnetic

Code Review | Shopnetic

WordPress plugin Shopnetic scored 100% from 54 tests.

About plugin

  • Plugin page: shopnetic
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.5
  • WordPress version: 5.8.1
  • First release: Jun 15, 2016
  • Latest release: Jun 15, 2016
  • Number of updates: 2
  • Update frequency: every 2.0 days
  • Top authors: shopnetic (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

10+ active / 417 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.01MB] [CPU: ▼146.46ms] Passed 4 tests

An overview of server-side resources used by Shopnetic
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.0143.96 ▲7.15
Dashboard /wp-admin3.07 ▲0.0244.78 ▲1.54
Posts /wp-admin/edit.php3.12 ▲0.0242.70 ▼3.27
Add New Post /wp-admin/post-new.php5.44 ▲0.0096.34 ▼580.70
Media Library /wp-admin/upload.php3.02 ▲0.0133.92 ▼3.39

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Shopnetic: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,714 ▲11816.08 ▲0.5320.17 ▲10.5750.02 ▼1.99
Dashboard /wp-admin2,970 ▲395.95 ▼0.30133.56 ▼12.34104.53 ▼13.95
Posts /wp-admin/edit.php2,739 ▼02.72 ▲0.0065.64 ▲3.1193.32 ▲2.94
Add New Post /wp-admin/post-new.php1,670 ▼219.12 ▲0.27370.28 ▼15.67108.62 ▲5.47
Media Library /wp-admin/upload.php1,807 ▼05.01 ▼0.05152.42 ▲3.67119.97 ▼6.84

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstaller ran successfully

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
The smoke test was a success, however most plugin functionality was not tested

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
Everything seems fine, however this is by no means an exhaustive 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 describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: shopnetic, makeup, embed, widget, youtube...

shopnetic/shopnetic.php Passed 13 tests

The principal PHP file in "Shopnetic" v. 1.0.0 is loaded by WordPress automatically on each request
48 characters long description:
Embed Shopnetic Widget into your WordPress site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin51 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP5176551

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin