Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
- The plugin cannot be installed
- > Notice in wp-content/plugins/somenano/somenano-install.php+48
Undefined variable: somenano_version
Server metrics [RAM: ▼0.30MB] [CPU: ▼24.84ms] Passed 4 tests
This is a short check of server-side resources used by SomeNano for WordPress
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.24 | 24.77 ▼16.01 |
Dashboard /wp-admin | 3.26 ▼0.09 | 28.63 ▼33.71 |
Posts /wp-admin/edit.php | 3.34 ▼0.02 | 33.37 ▼8.08 |
Add New Post /wp-admin/post-new.php | 4.74 ▼1.15 | 42.92 ▼41.55 |
Media Library /wp-admin/upload.php | 3.28 ▲0.06 | 27.10 ▼2.94 |
SomeNano /wp-admin/options-general.php?page=somenano-settings | 3.18 | 26.46 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 12 new files
Database: 2 new tables, 8 new options
New tables |
---|
wp_somenano_payments |
wp_somenano_paywalls |
New WordPress options |
---|
$somenano_db_version |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
$somenano_version |
Browser metrics Passed 4 tests
Checking browser requirements for SomeNano for WordPress
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,862 ▲116 | 13.26 ▼1.14 | 1.95 ▲0.04 | 46.93 ▲2.71 |
Dashboard /wp-admin | 2,220 ▲32 | 5.90 ▲0.01 | 101.34 ▼15.40 | 47.15 ▲5.53 |
Posts /wp-admin/edit.php | 2,106 ▲14 | 2.01 ▲0.02 | 34.78 ▼0.38 | 33.95 ▲5.16 |
Add New Post /wp-admin/post-new.php | 1,531 ▲3 | 23.18 ▲4.77 | 589.04 ▼19.50 | 61.43 ▲12.45 |
Media Library /wp-admin/upload.php | 1,405 ▲14 | 4.21 ▼0.03 | 96.91 ▼6.97 | 43.79 ▼0.42 |
SomeNano /wp-admin/options-general.php?page=somenano-settings | 1,594 | 2.05 | 22.39 | 27.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie tables detected upon uninstall: 2 tables
- wp_somenano_paywalls
- wp_somenano_payments
- This plugin does not fully uninstall, leaving 8 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- $somenano_version
- theysaidso_admin_options
- $somenano_db_version
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=somenano-settings
- > Notice in wp-content/plugins/somenano/somenano-wordpress.php+44
Undefined variable: somenano_version
SRP 50% from 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
Please fix the following
- 7× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/somenano/somenano-install.php
- > /wp-content/plugins/somenano/somenano-options.php
- > /wp-content/plugins/somenano/somenano-brainblocks.php
- > /wp-content/plugins/somenano/somenano-defaults.php
- > /wp-content/plugins/somenano/somenano-dbview.php
- > /wp-content/plugins/somenano/somenano-log.php
- > /wp-content/plugins/somenano/somenano-wordpress.php
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
- > GET request to /wp-admin/options-general.php?page=somenano-settings
- > Network (severe)
https://brainblocks.io/brainblocks.min.js?ver=20231010185816 - Failed to load resource: net::ERR_CERT_DATE_INVALID
- > GET request to /wp-admin/options-general.php?page=somenano-settings
- > Javascript (severe) in unknown
/wp-admin/options-general.php?page=somenano-settings 208:0 Uncaught ReferenceError: brainblocks is not defined
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
9 plugin tags: paywall, nano, cryptocurrency, pay, wall...
somenano/somenano-wordpress.php 92% from 13 tests
The primary PHP file in "SomeNano for WordPress" version 0.1.4 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("somenano.php" instead of "somenano-wordpress.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 detected770 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 145 | 87 | 704 |
JavaScript | 1 | 5 | 8 | 40 |
CSS | 2 | 4 | 0 | 26 |
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 code | 0.32 |
Average class complexity | 29.00 |
▷ Minimum class complexity | 29.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 3.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 25 | |
▷ Named functions | 25 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
PNG images were not found in this plugin