Benchmarks
Plugin footprint 83% 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.18MB] [CPU: ▼3.45ms] Passed 4 tests
An overview of server-side resources used by Newsworthy Feed
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.17 | 39.74 ▲1.13 |
Dashboard /wp-admin | 3.54 ▲0.23 | 46.33 ▼2.75 |
Posts /wp-admin/edit.php | 3.59 ▲0.23 | 49.88 ▲2.45 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 95.47 ▼14.61 |
Media Library /wp-admin/upload.php | 3.40 ▲0.16 | 37.47 ▲5.57 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Newsworthy Feed
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,794 ▲32 | 14.31 ▲0.07 | 1.59 ▼0.28 | 37.40 ▼6.69 |
Dashboard /wp-admin | 2,202 ▲25 | 5.63 ▲0.09 | 98.34 ▼3.16 | 43.15 ▲0.56 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.99 ▼0.01 | 40.01 ▲1.47 | 35.11 ▼0.90 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.30 ▲0.15 | 691.36 ▲60.78 | 60.81 ▲6.46 |
Media Library /wp-admin/upload.php | 1,404 ▲10 | 4.21 ▲0.05 | 99.14 ▼0.17 | 41.80 ▼1.87 |
Newsworthy Feed /wp-admin/options-general.php?page=Newsworthy Feed | 1,831 | 2.39 | 50.40 | 40.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
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
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/newsworthy-feed/nwaif_form.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/newsworthy-feed/nwaif_form_tab.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/newsworthy-feed/nwaif_admin.php:142
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: feeds, rss, newsworthyai, newsworthy, posts
newsworthy-feed/newsworthy_feed.php 85% from 13 tests
The entry point to "Newsworthy Feed" version 1.4.6 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("newsworthy-feed.php" instead of "newsworthy_feed.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 211 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 detected1,679 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 276 | 54 | 1,259 |
JavaScript | 4 | 55 | 12 | 236 |
CSS | 2 | 24 | 10 | 156 |
Markdown | 1 | 9 | 0 | 28 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 19.75 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 69.00 |
Average method complexity | 3.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 74 | |
▷ Static methods | 8 | 10.81% |
▷ Public methods | 42 | 56.76% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 32 | 43.24% |
Functions | 16 | |
▷ Named functions | 15 | 93.75% |
▷ Anonymous functions | 1 | 6.25% |
Constants | 4 | |
▷ Global constants | 1 | 25.00% |
▷ Class constants | 3 | 75.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
attachments/chosen-sprite@2x.png | 0.72KB | 0.83KB | 0.00% |
attachments/chosen-sprite.png | 0.53KB | 0.88KB | 0.00% |