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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.08MB] [CPU: ▼10.42ms] Passed 4 tests
Analyzing server-side resources used by Native Performance
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.20 | 34.46 ▼2.83 |
Dashboard /wp-admin | 3.38 ▲0.03 | 40.95 ▼18.37 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 45.61 ▼1.12 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 81.36 ▼19.35 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 37.87 ▲4.94 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 27 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
nperformance_modules |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Native Performance
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,745 ▼1 | 13.03 ▼1.32 | 1.34 ▼0.31 | 41.95 ▲2.62 |
Dashboard /wp-admin | 2,159 ▼26 | 5.71 ▼0.17 | 109.82 ▲8.97 | 79.27 ▲36.01 |
Posts /wp-admin/edit.php | 2,083 ▼6 | 2.02 ▼0.03 | 38.09 ▼2.08 | 35.23 ▼6.31 |
Add New Post /wp-admin/post-new.php | 1,256 ▼286 | 13.56 ▼4.54 | 368.77 ▼283.89 | 32.60 ▼21.10 |
Media Library /wp-admin/upload.php | 1,376 ▼15 | 4.17 ▼0.05 | 112.29 ▲3.70 | 69.73 ▲24.97 |
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
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: performance, cache, optimization, heartbeat api, speed...
native-performance/native-performance.php 85% from 13 tests
The main PHP script in "Native Performance" version 1.2.8 is automatically included on every request by WordPress
Please take the time to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 185 characters long)
- Requires at least: The required version number must match the one declared in readme.txt ("4.9" instead of "4.0")
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 plugin606 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 76 | 143 | 356 |
Sass | 1 | 24 | 2 | 136 |
PO File | 2 | 18 | 22 | 70 |
SVG | 2 | 1 | 1 | 43 |
CSS | 1 | 0 | 1 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 25 | |
▷ Named functions | 20 | 80.00% |
▷ Anonymous functions | 5 | 20.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/icon.png | 15.26KB | 0.63KB | ▼ 95.89% |