Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.08MB] [CPU: ▼5.25ms] Passed 4 tests
Server-side resources used by News Blog Classifier
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 44.29 ▲4.07 |
Dashboard /wp-admin | 3.33 ▲0.03 | 52.29 ▼1.60 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 49.40 ▼0.41 |
Add New Post /wp-admin/post-new.php | 5.47 ▼0.41 | 75.49 ▼17.78 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 36.58 ▼1.21 |
Server storage [IO: ▲1.21MB] [DB: ▲0.98MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 11 new files
Database: 8 new tables, 7 new options
New tables |
---|
wp_nbc_word_lists |
wp_nbc_stopword_lists |
wp_nbc_categories |
wp_nbc_words |
wp_nbc_document_collections |
wp_nbc_root_words |
wp_nbc_word_details |
wp_nbc_word_types |
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
category_children |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by News Blog Classifier
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲54 | 13.34 ▼1.01 | 4.39 ▲2.49 | 42.35 ▲1.60 |
Dashboard /wp-admin | 2,221 ▲21 | 5.80 ▼0.07 | 99.52 ▼19.38 | 38.21 ▼21.43 |
Posts /wp-admin/edit.php | 2,172 ▲69 | 2.04 ▼0.10 | 33.68 ▼2.06 | 34.44 ▼0.37 |
Add New Post /wp-admin/post-new.php | 6,255 ▲4,715 | 21.95 ▲3.65 | 882.46 ▲258.99 | 64.11 ▲17.29 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.22 ▼0.04 | 101.38 ▼1.86 | 44.22 ▲1.26 |
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
Please fix the following items
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- category_children
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/news-blog-classifier/news-blog-classifier.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: news blog, text classification, detik
news-blog-classifier/news-blog-classifier.php Passed 13 tests
Analyzing the main PHP file in "News Blog Classifier" version 1.0.0
97 characters long description:
This plugin is used to classify content blog to category: Health, Technology, Economy, and Sports
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
There were no executable files found in this plugin56,603 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SQL | 1 | 61 | 145 | 55,999 |
PHP | 3 | 143 | 109 | 509 |
JavaScript | 1 | 14 | 2 | 70 |
CSS | 2 | 4 | 5 | 25 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 30 | |
▷ Named functions | 30 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
3 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.08KB | 0.08KB | 0.00% |
css/images/ui-bg_flat_75_ffffff_40x100.png | 0.17KB | 0.08KB | ▼ 51.12% |
css/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.10KB | 0.17KB | 0.00% |