Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.25MB] [CPU: ▼137.09ms] Passed 4 tests
Analyzing server-side resources used by CEX Scroll To Top
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.07 ▲0.35 | 36.71 ▲12.15 |
Dashboard /wp-admin | 3.34 ▲0.29 | 47.19 ▲3.90 |
Posts /wp-admin/edit.php | 3.39 ▲0.28 | 43.55 ▼2.19 |
Add New Post /wp-admin/post-new.php | 5.64 ▲0.20 | 89.76 ▼553.84 |
Media Library /wp-admin/upload.php | 3.22 ▲0.22 | 33.73 ▲3.79 |
Server storage [IO: ▲3.23MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 51 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for CEX Scroll To Top
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,835 ▲229 | 16.25 ▲0.32 | 15.77 ▲8.21 | 46.06 ▼1.25 |
Dashboard /wp-admin | 2,991 ▲57 | 5.85 ▼0.13 | 127.33 ▼17.38 | 104.43 ▼12.63 |
Posts /wp-admin/edit.php | 2,778 ▲39 | 2.72 ▲0.02 | 66.66 ▲2.26 | 97.44 ▲15.34 |
Add New Post /wp-admin/post-new.php | 1,700 ▲28 | 18.83 ▼0.23 | 371.86 ▼0.70 | 105.14 ▼7.52 |
Media Library /wp-admin/upload.php | 1,784 ▼26 | 5.02 ▲0.03 | 151.61 ▲9.76 | 115.55 ▲1.51 |
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 Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: scroll to top, scroll, jquery scroll to top, scroll up
ce-scroll-to-top/ce-scroll-to-top.php 85% from 13 tests
This is the main PHP file of "CEX Scroll To Top" version 1.4.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
- Requires at least: Required version does not match the one declared in readme.txt ("4.0" instead of "5.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin19,771 lines of code in 36 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 3 | 0 | 0 | 9,552 |
CSS | 15 | 3,670 | 60 | 8,117 |
PHP | 13 | 452 | 791 | 1,843 |
Markdown | 1 | 65 | 0 | 179 |
JSON | 2 | 0 | 0 | 67 |
JavaScript | 2 | 0 | 7 | 13 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 25.22 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 70.00 |
Average method complexity | 2.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 1 | 11.11% |
Methods | 120 | |
▷ Static methods | 5 | 4.17% |
▷ Public methods | 82 | 68.33% |
▷ Protected methods | 6 | 5.00% |
▷ Private methods | 32 | 26.67% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 6 | |
▷ Global constants | 5 | 83.33% |
▷ Class constants | 1 | 16.67% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin