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
Installer ran successfully
Server metrics [RAM: ▼0.86MB] [CPU: ▼35.83ms] Passed 4 tests
A check of server-side resources used by Press Release Template
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 44.76 ▼3.81 |
Dashboard /wp-admin | 3.08 ▼0.22 | 24.90 ▼32.94 |
Posts /wp-admin/edit.php | 3.08 ▼0.28 | 29.02 ▼26.80 |
Add New Post /wp-admin/post-new.php | 3.08 ▼2.81 | 25.98 ▼70.78 |
Media Library /wp-admin/upload.php | 3.08 ▼0.15 | 26.62 ▼12.80 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Press Release Template
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,895 ▲134 | 13.51 ▼0.69 | 7.63 ▲5.49 | 42.35 ▼1.58 |
Dashboard /wp-admin | 2,221 ▲44 | 5.65 ▲0.08 | 94.46 ▼3.91 | 40.79 ▼0.47 |
Posts /wp-admin/edit.php | 2,123 ▲23 | 1.99 ▼0.01 | 41.67 ▲4.29 | 37.71 ▼1.65 |
Add New Post /wp-admin/post-new.php | 1,546 ▲20 | 23.71 ▲0.65 | 726.43 ▲3.75 | 64.15 ▼7.42 |
Media Library /wp-admin/upload.php | 1,423 ▲23 | 4.13 ▼0.02 | 98.95 ▼9.65 | 42.58 ▼4.73 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/press-release-template/inc/admin/class-admin.php+117
Undefined variable: ajax_form_page_hook
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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 fix the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/press-release-template/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-template/inc/admin/views/partials-html-form-view.php:22
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Screenshots: Screenshot #1 (Main screen) image not found
press-release-template/press-release-template.php Passed 13 tests
This is the main PHP file of "Press Release Template" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
127 characters long description:
A collection of free press release templates and examples. Press Release samples and free template for your next press release.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin398 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 2,560 | 521 | 373 |
JavaScript | 2 | 12 | 36 | 25 |
CSS | 2 | 2 | 10 | 0 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
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.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/admin/assets/images/pressreleasetemplate.png | 20.10KB | 5.80KB | ▼ 71.13% |