Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼144.67ms] Passed 4 tests
Analyzing server-side resources used by WP Smart Content
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 43.63 ▲19.50 |
Dashboard /wp-admin | 3.08 ▲0.03 | 37.78 ▼6.04 |
Posts /wp-admin/edit.php | 3.13 ▲0.02 | 39.51 ▼7.26 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.00 | 85.62 ▼563.83 |
Media Library /wp-admin/upload.php | 3.02 ▲0.02 | 32.89 ▼1.53 |
WP Smart Content /wp-admin/options-general.php?page=wpsc_settings | 3.03 | 34.08 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 1 new option
New WordPress options |
---|
category_children |
Browser metrics Passed 4 tests
WP Smart Content: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,684 ▲88 | 16.13 ▲0.44 | 7.61 ▼0.53 | 46.91 ▲0.37 |
Dashboard /wp-admin | 2,978 ▲47 | 5.93 ▼0.04 | 131.54 ▼9.24 | 112.86 ▼1.88 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.69 ▲0.01 | 61.55 ▼3.45 | 88.34 ▲1.23 |
Add New Post /wp-admin/post-new.php | 1,679 ▲9 | 18.96 ▼0.24 | 370.14 ▼10.96 | 108.78 ▲4.35 |
Media Library /wp-admin/upload.php | 1,812 ▲2 | 5.03 ▲0.01 | 142.47 ▼12.30 | 117.51 ▼0.21 |
WP Smart Content /wp-admin/options-general.php?page=wpsc_settings | 1,152 | 2.86 | 108.11 | 133.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 1 option
- category_children
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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 fix the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/wp-smart-content/uninstall.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
8 plugin tags: styles, scripts, wp smart content, add to footer, tracking code...
wp-smart-content/class-wpsc.php 85% from 13 tests
The main file in "WP Smart Content" v. 1.1.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-smart-content.php" instead of "class-wpsc.php")
- Description: Keep the plugin description shorter than 140 characters (currently 612 characters long)
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
Success! There were no dangerous files found in this plugin699 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 74 | 123 | 389 |
CSS | 1 | 26 | 4 | 173 |
JavaScript | 1 | 9 | 5 | 137 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 64.00 |
▷ Minimum class complexity | 64.00 |
▷ Maximum class complexity | 64.00 |
Average method complexity | 5.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.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 | 13 | |
▷ Static methods | 1 | 7.69% |
▷ Public methods | 12 | 92.31% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 7.69% |
Functions | 6 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 6 | 100.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/icon.png | 4.26KB | 1.83KB | ▼ 56.99% |