Benchmarks
Plugin footprint 65% 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: ▼1.55MB] [CPU: ▼46.89ms] Passed 4 tests
A check of server-side resources used by Arashtad Toggle Plugin
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.44 ▼1.02 | 9.63 ▼34.09 |
Dashboard /wp-admin | 2.46 ▼0.84 | 13.97 ▼40.14 |
Posts /wp-admin/edit.php | 2.46 ▼0.90 | 10.83 ▼34.38 |
Add New Post /wp-admin/post-new.php | 2.46 ▼3.43 | 11.95 ▼78.96 |
Media Library /wp-admin/upload.php | 2.46 ▼0.77 | 12.46 ▼25.56 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_artoggle_widget |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Arashtad Toggle Plugin: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,906 ▲171 | 13.92 ▼0.45 | 4.57 ▲2.49 | 36.71 ▼12.66 |
Dashboard /wp-admin | 2,209 ▲21 | 5.86 ▼0.03 | 101.79 ▼0.99 | 39.41 ▼2.01 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.02 ▼0.04 | 36.10 ▼0.56 | 33.62 ▼2.02 |
Add New Post /wp-admin/post-new.php | 1,514 ▼0 | 17.66 ▲0.06 | 683.40 ▼8.86 | 57.70 ▲3.05 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.23 ▲0.07 | 96.42 ▼1.60 | 42.18 ▼3.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/arashtad-toggle/arashtad-toggle.php+52
Undefined variable: text_domain
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_artoggle_widget
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 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
Please take a closer look at the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/arashtad-toggle/arashtad-toggle.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Screenshots: Screenshot #2 (Default Style) image required
arashtad-toggle/arashtad-toggle.php Passed 13 tests
The main file in "Arashtad Toggle Plugin" v. 1.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
63 characters long description:
Responsive toggle widget for WordPress, created by Arashtad.com
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
Good job! No executable or dangerous file extensions detected1,503 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 162 | 42 | 668 |
CSS | 1 | 25 | 22 | 513 |
PO File | 2 | 125 | 127 | 302 |
JavaScript | 1 | 4 | 11 | 19 |
HTML | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 86.00 |
▷ Minimum class complexity | 86.00 |
▷ Maximum class complexity | 86.00 |
Average method complexity | 22.25 |
▷ Minimum method complexity | 2.00 |
▷ Maximum method complexity | 49.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected