Benchmarks
Plugin footprint 65% 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.83MB] [CPU: ▼39.18ms] Passed 4 tests
Server-side resources used by Press Release Newsroom
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.88 ▲0.14 | 48.00 ▼0.70 |
Dashboard /wp-admin | 3.40 ▼0.23 | 27.32 ▼40.97 |
Posts /wp-admin/edit.php | 3.40 ▼0.28 | 30.89 ▼24.75 |
Add New Post /wp-admin/post-new.php | 3.40 ▼2.74 | 25.10 ▼81.06 |
Media Library /wp-admin/upload.php | 3.40 ▼0.09 | 28.59 ▼9.92 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Press Release Newsroom
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,920 ▲174 | 13.54 ▼0.76 | 8.58 ▲6.47 | 47.79 ▲5.76 |
Dashboard /wp-admin | 2,221 ▲50 | 5.63 ▼0.05 | 91.07 ▼2.61 | 38.86 ▼1.61 |
Posts /wp-admin/edit.php | 2,120 ▲20 | 2.01 ▼0.05 | 39.65 ▲2.49 | 36.46 ▼2.93 |
Add New Post /wp-admin/post-new.php | 1,546 ▲14 | 23.18 ▼0.26 | 683.29 ▲17.30 | 53.76 ▲1.00 |
Media Library /wp-admin/upload.php | 1,417 ▲20 | 4.19 ▼0.03 | 97.14 ▼1.42 | 43.76 ▼0.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/press-release-newsroom/inc/admin/class-admin.php+117
Undefined variable: ajax_form_page_hook
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% 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 0% 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 take a closer look at the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/press-release-newsroom/inc/frontend/views/html-prwirepro-press-release-newsroom-frontend-display.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/press-release-newsroom/inc/admin/views/partials-html-form-view.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
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 (Main screen)
press-release-newsroom/press-release-newsroom.php 92% from 13 tests
Analyzing the main PHP file in "Press Release Newsroom" version 1.0.0
Please take the time to fix the following:
- Description: The description should be shorter than 140 characters (currently 239 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected400 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 2,469 | 515 | 334 |
HTML | 1 | 5 | 0 | 41 |
JavaScript | 2 | 12 | 36 | 25 |
CSS | 2 | 2 | 10 | 0 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 34 | |
▷ Static methods | 3 | 8.82% |
▷ Public methods | 29 | 85.29% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 14.71% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/admin/assets/images/title.png | 6.69KB | 3.82KB | ▼ 42.81% |