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 gracefully, with no errors
Server metrics [RAM: ▲0.06MB] [CPU: ▼1.61ms] Passed 4 tests
Server-side resources used by Press Release
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 37.34 ▼3.25 |
Dashboard /wp-admin | 3.36 ▲0.06 | 49.45 ▲0.92 |
Posts /wp-admin/edit.php | 3.41 ▲0.06 | 54.03 ▲1.46 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 87.89 ▼4.79 |
Media Library /wp-admin/upload.php | 3.28 ▲0.06 | 36.03 ▲0.69 |
All Press Releases /wp-admin/edit.php?post_type=pressrelease | 3.33 | 35.89 |
Add New /wp-admin/post-new.php?post_type=pressrelease | 3.49 | 51.85 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Press Release
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,914 ▲179 | 13.58 ▼1.00 | 7.16 ▲5.28 | 39.37 ▼21.50 |
Dashboard /wp-admin | 2,230 ▲39 | 4.87 ▼0.01 | 111.27 ▼10.95 | 38.09 ▼2.93 |
Posts /wp-admin/edit.php | 2,119 ▲51 | 1.97 ▼0.03 | 40.37 ▲5.49 | 36.07 ▲2.93 |
Add New Post /wp-admin/post-new.php | 1,542 ▲5 | 22.93 ▼0.17 | 643.22 ▼31.00 | 62.78 ▲10.53 |
Media Library /wp-admin/upload.php | 1,412 ▲24 | 4.10 ▼0.06 | 102.17 ▼1.80 | 45.77 ▼4.69 |
All Press Releases /wp-admin/edit.php?post_type=pressrelease | 1,134 | 1.97 | 32.05 | 36.52 |
Add New /wp-admin/post-new.php?post_type=pressrelease | 2,774 | 7.84 | 176.63 | 75.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% 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 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/press-release/inc/frontend/views/html-prwirepro-press-release-writer-frontend-display.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/press-release/inc/admin/views/partials-html-form-view.php:21
- > PHP Fatal error
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)
No browser errors were detected
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
3 plugin tags: press release, press, seo
press-release/press-release.php Passed 13 tests
"Press Release" version 2.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
68 characters long description:
A press release editor with an included free press release template.
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 plugin620 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 2,196 | 611 | 554 |
HTML | 1 | 5 | 0 | 41 |
JavaScript | 2 | 12 | 36 | 25 |
CSS | 2 | 2 | 10 | 0 |
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.09 |
Average class complexity | 2.56 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 47 | |
▷ Static methods | 2 | 4.26% |
▷ Public methods | 42 | 89.36% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 10.64% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 6 | |
▷ Global constants | 6 | 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
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/admin/assets/images/logo.png | 1.45KB | 1.04KB | ▼ 28.17% |
inc/admin/assets/images/pressreleasetemplate.png | 6.05KB | 3.08KB | ▼ 49.21% |