Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼4.56ms] Passed 4 tests
A check of server-side resources used by TrimPress
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 42.32 ▲4.17 |
Dashboard /wp-admin | 3.41 ▲0.11 | 48.42 ▼2.33 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 47.80 ▼0.51 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.11 | 84.18 ▼16.56 |
Media Library /wp-admin/upload.php | 3.33 ▲0.11 | 37.03 ▲1.16 |
TrimPress /wp-admin/options-general.php?page=trimpress | 3.30 | 30.91 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by TrimPress
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲47 | 14.22 ▼0.22 | 1.76 ▲0.20 | 53.59 ▲14.48 |
Dashboard /wp-admin | 2,199 ▲22 | 5.63 ▲0.01 | 85.63 ▲4.17 | 38.43 ▼5.88 |
Posts /wp-admin/edit.php | 2,104 ▲25 | 1.98 ▼0.01 | 32.95 ▼1.86 | 33.44 ▲0.82 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.12 ▼0.28 | 668.45 ▼13.56 | 51.22 ▼4.88 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.27 ▲0.13 | 93.69 ▼10.24 | 41.88 ▼3.51 |
TrimPress /wp-admin/options-general.php?page=trimpress | 1,085 | 2.02 | 22.30 | 28.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: oembed, xml-rpc, cart fragments, heartbeat, emojis
trimpress/trimpress.php Passed 13 tests
The primary PHP file in "TrimPress" version 1.1 is used by WordPress to initiate all plugin functionality
71 characters long description:
Trim some of the cruft from WordPress for a lighter, more secure theme!
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 plugin461 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 172 | 171 | 445 |
Markdown | 1 | 6 | 0 | 16 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 10.75 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 2.34 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 37.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 29 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.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
There are no PNG files in this plugin