Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.06MB] [CPU: ▼4.11ms] Passed 4 tests
This is a short check of server-side resources used by M7 Go Top
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 39.06 ▼6.59 |
Dashboard /wp-admin | 3.37 ▲0.06 | 47.24 ▲1.29 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 50.58 ▲1.67 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 84.41 ▼12.79 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 35.27 ▲1.88 |
M7 Go Top /wp-admin/options-general.php?page=m7-go-top | 3.70 | 31.64 |
Server storage [IO: ▲1.22MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 18 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
m7_go_top_version |
m7_go_top_options |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by M7 Go Top
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 14.40 ▼0.25 | 1.66 ▼0.30 | 44.09 ▼2.92 |
Dashboard /wp-admin | 2,210 ▲22 | 4.83 ▼1.07 | 108.53 ▲6.06 | 41.22 ▼1.78 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.01 ▼0.03 | 38.29 ▼4.52 | 34.88 ▼0.19 |
Add New Post /wp-admin/post-new.php | 1,537 ▲18 | 23.22 ▲0.07 | 632.64 ▼18.40 | 49.75 ▼17.49 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.21 ▲0.02 | 99.25 ▼3.61 | 41.37 ▼5.01 |
M7 Go Top /wp-admin/options-general.php?page=m7-go-top | 3,000 | 4.20 | 128.64 | 78.48 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=m7-go-top
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=m7-go-top
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
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 take a closer look at the following
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Cannot access self:: when no class scope is active in wp-content/plugins/m7-go-top/admin.php:2
- > PHP Fatal error
Uncaught Error: Cannot access self:: when no class scope is active in wp-content/plugins/m7-go-top/frontend.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== m7-go-top ===
)
m7-go-top/m7-go-top.php Passed 13 tests
The main PHP script in "M7 Go Top" version 1.1 is automatically included on every request by WordPress
110 characters long description:
Creates "To Top" link on your website, so that visitors could get back to the top of page. Fully customizable.
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
Everything looks great! No dangerous files found in this plugin2,591 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 96 | 149 | 1,897 |
PO File | 1 | 140 | 301 | 313 |
JavaScript | 2 | 57 | 48 | 245 |
CSS | 1 | 3 | 0 | 136 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.61 |
Average class complexity | 84.50 |
▷ Minimum class complexity | 34.00 |
▷ Maximum class complexity | 135.00 |
Average method complexity | 7.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 72.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 26 | |
▷ Static methods | 1 | 3.85% |
▷ Public methods | 26 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.08MB with 0.03MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icons/faq.png | 0.46KB | 0.30KB | ▼ 34.33% |
images/icons/donate.png | 1.07KB | 0.88KB | ▼ 17.58% |
images/icons/settings.png | 1.78KB | 1.44KB | ▼ 19.16% |
images/top.png | 78.32KB | 0.15KB | ▼ 99.81% |