Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
- Install procedure validation failed for this plugin
- > Compile error in wp-content/plugins/pressroom-by-newswire/includes/activate.php+144
'continue' not in the 'loop' or 'switch' context
Server metrics [RAM: ▲0.00MB] [CPU: ▼0.30ms] Passed 4 tests
Analyzing server-side resources used by PressRoom by Newswire
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 37.24 ▼0.55 |
Dashboard /wp-admin | 3.31 ▲0.00 | 45.70 ▼0.14 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.24 ▼0.28 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 92.38 ▲4.46 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.33 ▼0.23 |
Server storage [IO: ▲5.82MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 180 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
PressRoom by Newswire: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲43 | 14.48 ▲0.21 | 1.76 ▼0.20 | 39.08 ▼3.08 |
Dashboard /wp-admin | 2,206 ▲18 | 5.86 ▼0.04 | 111.24 ▼0.42 | 37.70 ▼3.40 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 2.03 ▲0.04 | 39.48 ▲0.11 | 34.07 ▲3.00 |
Add New Post /wp-admin/post-new.php | 1,542 ▲6 | 18.23 ▼4.89 | 593.13 ▼64.35 | 50.10 ▼4.79 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.25 ▲0.05 | 99.32 ▼18.63 | 45.70 ▼4.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin did not uninstall without warnings or errors
- > User deprecated in wp-includes/functions.php+5453
Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% 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 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 43× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHWPINC/feed.php' (include_path='.:/usr/share/php') in wp-content/plugins/pressroom-by-newswire/includes/cron/newswire-submission.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pressroom-by-newswire/includes/newsroom/actions/republish.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/pressroom-by-newswire/includes/pressroom/templates/pressroom-pin_as_latestpr.php:3
- > PHP Warning
Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/pressroom-by-newswire/includes/cron/rss-import.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/pressroom-by-newswire/includes/pressroom/templates/pressroom-pin_as_image.php:2
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/pressroom-by-newswire/includes/cron/newswire-freesites.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/pressroom-by-newswire/includes/pressroom/templates/pressroom-pr.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pressroom-by-newswire/includes/media.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pressroom-by-newswire/includes/roles.php:7
- > PHP Warning
Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/pressroom-by-newswire/includes/cron/newswire-submission.php on line 9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
- Screenshots: These screenshots do not have images: #27 (latest pr block), #28 (latest pr block)
pressroom-by-newswire/pressroom.php 85% from 13 tests
The primary PHP file in "PressRoom by Newswire" version 1.2 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("pressroom-by-newswire.php" instead of "pressroom.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected25,263 lines of code in 117 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 31 | 766 | 488 | 13,032 |
PHP | 65 | 3,143 | 3,371 | 9,723 |
JavaScript | 18 | 535 | 659 | 2,060 |
SVG | 2 | 0 | 0 | 412 |
HTML | 1 | 2 | 0 | 36 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 35.36 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 108.00 |
Average method complexity | 3.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 40.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 1 | 9.09% |
Methods | 183 | |
▷ Static methods | 1 | 0.55% |
▷ Public methods | 175 | 95.63% |
▷ Protected methods | 4 | 2.19% |
▷ Private methods | 4 | 2.19% |
Functions | 268 | |
▷ Named functions | 268 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 36 | |
▷ Global constants | 33 | 91.67% |
▷ Class constants | 3 | 8.33% |
▷ Public constants | 3 | 100.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
30 PNG files occupy 0.70MB with 0.18MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/css/jquery-ui/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.11KB | 0.14KB | 0.00% |
assets/images/globe-icon.png | 0.91KB | 0.86KB | ▼ 5.39% |
assets/js/nivo-slider/themes/dark/bullets.png | 3.07KB | 0.42KB | ▼ 86.27% |
assets/css/jquery-ui/images/ui-icons_454545_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
assets/js/nivo-slider/themes/default/arrows.png | 0.80KB | 0.51KB | ▼ 36.53% |