Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼4.74ms] Passed 4 tests
Server-side resources used by Nusvg
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 36.94 ▼4.59 |
Dashboard /wp-admin | 3.45 ▲0.14 | 48.67 ▼3.16 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 50.08 ▲4.19 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 82.32 ▼9.83 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 35.93 ▼1.38 |
nusvg /wp-admin/admin.php?page=nusvg | 3.35 | 35.79 |
Credits /wp-admin/admin.php?page=nusvg-credits | 3.34 | 32.31 |
/wp-admin/admin.php?page=nusvg-item | 3.34 | 33.32 |
Uninstall /wp-admin/admin.php?page=nusvg-uninstall | 3.34 | 32.78 |
Documentation /wp-admin/admin.php?page=nusvg-documentation | 3.40 | 33.00 |
List /wp-admin/admin.php?page=nusvg-list | 3.35 | 33.43 |
Troubleshooting /wp-admin/admin.php?page=nusvg-troubleshooting | 3.34 | 31.10 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 19 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_nusvg_items |
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
nusvg_db_version |
db_upgraded |
widget_theysaidso_widget |
nusvg_plugin_version |
widget_recent-posts |
Browser metrics Passed 4 tests
Nusvg: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,866 ▲120 | 13.62 ▼1.00 | 1.53 ▼0.21 | 37.44 ▼9.32 |
Dashboard /wp-admin | 2,269 ▲81 | 5.83 ▲0.94 | 98.49 ▼18.52 | 39.85 ▼2.60 |
Posts /wp-admin/edit.php | 2,155 ▲66 | 2.06 ▲0.04 | 36.95 ▲0.77 | 30.90 ▼2.46 |
Add New Post /wp-admin/post-new.php | 1,552 ▲33 | 23.33 ▲0.04 | 632.15 ▼38.00 | 48.54 ▼10.40 |
Media Library /wp-admin/upload.php | 1,454 ▲66 | 4.32 ▲0.22 | 96.57 ▼23.07 | 45.30 ▼1.99 |
nusvg /wp-admin/admin.php?page=nusvg | 885 | 2.08 | 26.92 | 26.12 |
Credits /wp-admin/admin.php?page=nusvg-credits | 810 | 2.07 | 23.85 | 23.99 |
/wp-admin/admin.php?page=nusvg-item | 824 | 2.07 | 23.29 | 21.08 |
Uninstall /wp-admin/admin.php?page=nusvg-uninstall | 820 | 2.04 | 24.35 | 24.92 |
Documentation /wp-admin/admin.php?page=nusvg-documentation | 1,597 | 2.07 | 23.46 | 50.38 |
List /wp-admin/admin.php?page=nusvg-list | 884 | 2.05 | 25.59 | 23.00 |
Troubleshooting /wp-admin/admin.php?page=nusvg-troubleshooting | 820 | 2.07 | 24.51 | 22.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/nusvg/nusvg.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/nusvg/classes/class-nusvg.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 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
1 plugin tags: svg
nusvg/nusvg.php Passed 13 tests
"Nusvg" version 0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
11 characters long description:
SVG manager
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,261 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 210 | 32 | 1,016 |
PO File | 1 | 117 | 194 | 159 |
CSS | 1 | 1 | 0 | 81 |
JavaScript | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 9.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 56.00 |
Average method complexity | 2.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 55 | |
▷ Static methods | 31 | 56.36% |
▷ Public methods | 55 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 6 | 100.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin