Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▼0.94MB] [CPU: ▼39.40ms] Passed 4 tests
Analyzing server-side resources used by Press Release Services
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 41.78 ▲3.51 |
Dashboard /wp-admin | 3.01 ▼0.33 | 29.93 ▼31.68 |
Posts /wp-admin/edit.php | 3.01 ▼0.34 | 21.76 ▼29.82 |
Add New Post /wp-admin/post-new.php | 3.01 ▼2.87 | 21.68 ▼82.24 |
Media Library /wp-admin/upload.php | 3.01 ▼0.21 | 25.78 ▼13.86 |
Server storage [IO: ▲0.70MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Press Release Services
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,920 ▲159 | 13.51 ▼0.89 | 9.90 ▲8.22 | 43.83 ▲0.50 |
Dashboard /wp-admin | 2,221 ▲50 | 5.65 ▲0.07 | 95.52 ▲4.68 | 41.66 ▼6.06 |
Posts /wp-admin/edit.php | 2,123 ▲23 | 2.00 ▼0.02 | 34.68 ▼3.27 | 33.92 ▼1.21 |
Add New Post /wp-admin/post-new.php | 1,546 ▲18 | 23.80 ▲0.27 | 689.43 ▲47.50 | 55.10 ▼10.27 |
Media Library /wp-admin/upload.php | 1,426 ▲26 | 4.18 ▼0.02 | 113.25 ▲18.06 | 47.68 ▲2.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/press-release-services/inc/admin/class-admin.php+117
Undefined variable: ajax_form_page_hook
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, 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
The following issues need your attention
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/press-release-services/inc/frontend/views/html-prwirepro-press-release-writer-frontend-display.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/press-release-services/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
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: press release services, stock graphics, stock templates
press-release-services/press-release-services.php Passed 13 tests
The main file in "Press Release Services" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
88 characters long description:
Free stock press release graphics and templates and free press release services support.
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
Everything looks great! No dangerous files found in this plugin367 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 2,552 | 521 | 342 |
JavaScript | 2 | 12 | 36 | 25 |
CSS | 2 | 2 | 10 | 0 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
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 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.63MB with 0.34MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/admin/assets/images/footer.png | 31.56KB | 8.95KB | ▼ 71.65% |
inc/admin/assets/images/template003.png | 50.49KB | 31.66KB | ▼ 37.28% |
inc/admin/assets/images/template001.png | 69.91KB | 36.42KB | ▼ 47.90% |
inc/admin/assets/images/template002.png | 45.27KB | 22.55KB | ▼ 50.18% |
inc/admin/assets/images/template004.png | 446.52KB | 177.59KB | ▼ 60.23% |