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
Install script ran successfully
Server metrics [RAM: ▼0.68MB] [CPU: ▼17.35ms] Passed 4 tests
An overview of server-side resources used by Total News Keywords
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 39.96 ▼1.60 |
Dashboard /wp-admin | 3.33 ▲0.03 | 49.61 ▼5.40 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 43.60 ▲0.58 |
Add New Post /wp-admin/post-new.php | 3.11 ▼2.77 | 34.58 ▼62.97 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 36.33 ▲3.09 |
Total News Keywords /wp-admin/options-general.php?page=total_news_keywords_admin | 3.19 | 30.12 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Total News Keywords
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲94 | 13.11 ▼1.27 | 2.07 ▲0.28 | 43.53 ▼0.75 |
Dashboard /wp-admin | 2,210 ▲22 | 5.86 ▲0.98 | 99.94 ▼16.49 | 39.02 ▼9.62 |
Posts /wp-admin/edit.php | 2,090 ▲1 | 2.06 ▲0.00 | 35.90 ▼6.17 | 33.51 ▼2.94 |
Add New Post /wp-admin/post-new.php | 6,265 ▲4,723 | 26.16 ▲7.72 | 932.58 ▲307.77 | 71.49 ▲22.69 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.23 ▲0.01 | 93.02 ▼8.86 | 43.35 ▼0.06 |
Total News Keywords /wp-admin/options-general.php?page=total_news_keywords_admin | 851 | 2.07 | 33.59 | 32.85 |
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
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=total_news_keywords_admin
- > Notice in wp-content/plugins/total-news-keywords/total-news-keywords.php+108
Undefined variable: total_news_keywords_updated
- > GET request to /wp-admin/options-general.php?page=total_news_keywords_admin
- > Notice in wp-content/plugins/total-news-keywords/total-news-keywords.php+139
Undefined variable: total_news_keywords_version
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/total-news-keywords/total-news-keywords.php:58
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Screenshots: Add images for these screenshots: #1 (Administration settings), #2 (Post options)
total-news-keywords/total-news-keywords.php Passed 13 tests
"Total News Keywords" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
60 characters long description:
Automatic news_keywords meta data from tags or custom field.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected168 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 51 | 23 | 168 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
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 | 6 | |
▷ Named functions | 6 | 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
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 10.28KB | 4.86KB | ▼ 52.68% |
screenshot-2.png | 17.37KB | 7.82KB | ▼ 54.97% |