Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/1-source-cleaner/1-source-cleaner.php+32
Methods with the same name as their class will not be constructors in a future version of PHP; source_cleaner has a deprecated constructor
Server metrics [RAM: ▼2.50MB] [CPU: ▼345.35ms] Passed 4 tests
A check of server-side resources used by 1 Source Cleaner
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.87 ▼1.64 | 5.21 ▼47.33 |
Dashboard /wp-admin | 1.89 ▼1.52 | 4.16 ▼63.69 |
Posts /wp-admin/edit.php | 1.89 ▼1.75 | 3.70 ▼35.15 |
Add New Post /wp-admin/post-new.php | 1.89 ▼5.08 | 4.87 ▼1,235.22 |
Media Library /wp-admin/upload.php | 1.89 ▼1.41 | 3.91 ▼20.40 |
Server storage [IO: ▲0.38MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for 1 Source Cleaner
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,767 ▲14 | 14.68 ▼1.36 | 6.38 ▲0.45 | 2.05 ▼0.57 |
Dashboard /wp-admin | 2,895 ▲37 | 6.10 ▼0.10 | 118.42 ▼24.79 | 160.28 ▼11.88 |
Posts /wp-admin/edit.php | 2,688 ▼0 | 3.23 ▼0.00 | 65.80 ▼2.64 | 144.66 ▼10.71 |
Add New Post /wp-admin/post-new.php | 1,668 ▲28 | 19.00 ▼1.84 | 402.14 ▼18.21 | 164.73 ▼59.62 |
Media Library /wp-admin/upload.php | 1,698 ▼0 | 5.48 ▼0.05 | 141.50 ▲2.20 | 185.71 ▼75.34 |
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
It is recommended to fix the following
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/1-source-cleaner/1-source-cleaner.php+32
Methods with the same name as their class will not be constructors in a future version of PHP; source_cleaner has a deprecated constructor
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/1-source-cleaner/2-source-cleaner-ad.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/1-source-cleaner/1-source-cleaner.php:34
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% 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
Attributes that require attention:
- Screenshots: Please add an image for screenshot #1 (2.)
1-source-cleaner/1-source-cleaner.php 92% from 13 tests
This is the main PHP file of "1 Source Cleaner" version 1.1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 285 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin68 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 16 | 25 | 68 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.08 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.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 | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.29MB with 0.19MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 41.96KB | 12.98KB | ▼ 69.06% |
screenshot-2.png | 256.55KB | 103.75KB | ▼ 59.56% |