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
- The plugin did not install without errors
- > Error in wp-content/plugins/deshi-news-aggregator/src/Cron/GetNews.php+31
Uncaught TypeError: Argument 1 passed to ShahariaAzam\WPPlugin\DeshiNewsAggregator\Cron\GetNews::dbInsert() must be of the type array, null given, called in wp-content/plugins/deshi-news-aggregator/src/Cron/GetNews.php on line 28 and defined in wp-content/plugins/deshi-news-aggregator/src/Cron/GetNews.php:31
Stack trace:
#0 wp-content/plugins/deshi-news-aggregator/src/Cron/GetNews.php(28): ShahariaAzam\WPPlugin\DeshiNewsAggregator\Cron\GetNews::dbInsert()
#1 wp-content/plugins/deshi-news-aggregator/src/DB/Install.php(48): ShahariaAzam\WPPlugin\DeshiNewsAggregator\Cron\GetNews->fetch()
#2 wp-content/plugins/deshi-news-aggregator/src/DB/Install.php(35): ShahariaAzam\WPPlugin\DeshiNewsAggregator\DB\Install::insertInitialNewsHeadlines()
#3 wp-includes/class-wp-hook.php(310): ShahariaAzam\WPPlugin\DeshiNewsAggregator\DB\Install::createTables()
#4 wp-includes/class-wp-hook.php(334): W
Server metrics [RAM: ▼0.01MB] [CPU: ▼9.96ms] Passed 4 tests
Server-side resources used by Deshi News Aggregator
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 37.32 ▼10.95 |
Dashboard /wp-admin | 3.31 ▼0.04 | 50.52 ▼13.34 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.89 ▼4.44 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 88.81 ▼11.09 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 38.35 ▲0.95 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 25 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_DESHI_NEWS_AGGREGATOR__news_headlines |
New WordPress options |
---|
DESHI_NEWS_AGGREGATOR_PLUGIN_db_version |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Deshi News Aggregator
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.23 ▼1.01 | 1.76 ▼0.08 | 42.72 ▼4.28 |
Dashboard /wp-admin | 2,206 ▲15 | 5.88 ▲1.00 | 106.12 ▼2.00 | 39.21 ▼2.40 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.02 ▼0.00 | 39.40 ▲3.87 | 35.93 ▲0.08 |
Add New Post /wp-admin/post-new.php | 1,514 ▼5 | 17.66 ▼5.53 | 666.09 ▼12.86 | 53.97 ▼1.70 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.13 ▼0.06 | 101.86 ▼0.63 | 48.55 ▲2.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie tables detected upon uninstall: 1 table
- wp_DESHI_NEWS_AGGREGATOR__news_headlines
- The uninstall procedure has failed, leaving 7 options in the database
- can_compress_scripts
- DESHI_NEWS_AGGREGATOR_PLUGIN_db_version
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 50% 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
Please fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/deshi-news-aggregator/src/Widgets/NAWidgetOne.php:9
- > 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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: news, bangladeshi, aggregator
deshi-news-aggregator/deshi-news-aggregator.php Passed 13 tests
This is the main PHP file of "Deshi News Aggregator" version 1.0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
70 characters long description:
Show your WP site visitor all latest news from Bangladeshi news source
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected636 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 174 | 210 | 617 |
CSS | 1 | 2 | 0 | 10 |
JSON | 2 | 0 | 0 | 9 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 5.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 47 | |
▷ Static methods | 6 | 12.77% |
▷ Public methods | 46 | 97.87% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 2.13% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
statics/img/deshi_news_aggregator_icon.png | 0.60KB | 0.37KB | ▼ 38.21% |