Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼6.84ms] Passed 4 tests
An overview of server-side resources used by Web3devs NEAR Access Plugin
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.18 | 40.59 ▲2.95 |
Dashboard /wp-admin | 3.49 ▲0.18 | 47.87 ▼3.78 |
Posts /wp-admin/edit.php | 3.60 ▲0.24 | 55.29 ▲5.38 |
Add New Post /wp-admin/post-new.php | 5.63 ▼0.26 | 75.95 ▼28.83 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 37.34 ▲2.32 |
NEAR Access /wp-admin/admin.php?page=web3devs-near-access | 3.38 | 34.11 |
Settings /wp-admin/admin.php?page=web3devs-near-access-settings | 3.39 | 34.32 |
Server storage [IO: ▲3.48MB] [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: 40 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Web3devs NEAR Access Plugin: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,927 ▲166 | 14.75 ▲0.40 | 30.12 ▲28.27 | 41.01 ▲1.36 |
Dashboard /wp-admin | 2,219 ▲41 | 5.59 ▼0.14 | 95.17 ▼15.64 | 40.09 ▼4.22 |
Posts /wp-admin/edit.php | 2,127 ▲27 | 2.02 ▼0.02 | 40.62 ▲0.56 | 36.12 ▲3.70 |
Add New Post /wp-admin/post-new.php | 6,257 ▲4,725 | 26.19 ▲2.93 | 906.65 ▲251.27 | 55.28 ▼11.63 |
Media Library /wp-admin/upload.php | 1,424 ▲30 | 4.17 ▲0.01 | 96.89 ▼11.69 | 43.65 ▼2.75 |
NEAR Access /wp-admin/admin.php?page=web3devs-near-access | 813 | 2.03 | 25.35 | 27.96 |
Settings /wp-admin/admin.php?page=web3devs-near-access-settings | 1,041 | 2.00 | 22.45 | 27.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 50% 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 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/near-access/admin/partials/web3devs-near-access-admin-display.php
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/near-access/admin/partials/web3devs-near-access-admin-settings-display.php:73
- > PHP Notice
Undefined variable: coins in wp-content/plugins/near-access/admin/partials/web3devs-near-access-admin-settings-display.php on line 38
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/near-access/public/class-web3devs-near-access-public.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Requires php: Version not formatted correctly
near-access/web3devs-near-access.php 85% from 13 tests
Analyzing the main PHP file in "Web3devs NEAR Access Plugin" version 1.0.0
The following require your attention:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("near-access.php" instead of "web3devs-near-access.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin1,046 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 226 | 564 | 947 |
JavaScript | 5 | 6 | 67 | 43 |
JSON | 2 | 0 | 0 | 40 |
CSS | 3 | 1 | 9 | 9 |
Markdown | 1 | 4 | 0 | 6 |
HTML | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 11.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 61.00 |
Average method complexity | 2.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 65 | |
▷ Static methods | 2 | 3.08% |
▷ Public methods | 41 | 63.08% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 24 | 36.92% |
Functions | 5 | |
▷ Named functions | 3 | 60.00% |
▷ Anonymous functions | 2 | 40.00% |
Constants | 2 | |
▷ Global constants | 1 | 50.00% |
▷ Class constants | 1 | 50.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 compressed PNG files occupy 0.01MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/js/component/build/logo192.png | 5.22KB | 5.57KB | 0.00% |
public/js/component/build/logo512.png | 9.44KB | 10.35KB | 0.00% |