Benchmarks
Plugin footprint 65% 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: ▼1.69MB] [CPU: ▼49.94ms] Passed 4 tests
An overview of server-side resources used by Pocket News Generator
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 41.51 ▼6.14 |
Dashboard /wp-admin | 2.26 ▼1.05 | 8.01 ▼42.88 |
Posts /wp-admin/edit.php | 2.26 ▼1.10 | 7.87 ▼43.58 |
Add New Post /wp-admin/post-new.php | 2.26 ▼3.63 | 9.64 ▼83.32 |
Media Library /wp-admin/upload.php | 2.26 ▼0.97 | 8.01 ▼29.97 |
Pocket News Generator /wp-admin/tools.php?page=pocket_news_generator_generation_page | 2.26 | 7.56 |
Pocket News Generator /wp-admin/options-general.php?page=pocket_news_generator_options_page | 2.26 | 9.31 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Pocket News Generator
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,799 ▲53 | 14.37 ▲0.01 | 1.72 ▲0.16 | 41.78 ▲2.67 |
Dashboard /wp-admin | 2,205 ▲31 | 5.63 ▲0.06 | 83.55 ▼10.92 | 41.87 ▼2.26 |
Posts /wp-admin/edit.php | 2,110 ▲13 | 1.97 ▼0.02 | 39.98 ▲3.21 | 39.76 ▲5.92 |
Add New Post /wp-admin/post-new.php | 1,534 ▼3 | 23.66 ▲5.47 | 600.06 ▼26.99 | 50.81 ▼11.29 |
Media Library /wp-admin/upload.php | 1,407 ▲4 | 4.17 ▲0.01 | 100.80 ▼8.15 | 44.85 ▲0.11 |
Pocket News Generator /wp-admin/tools.php?page=pocket_news_generator_generation_page | 1,000 | 1.99 | 23.23 | 28.55 |
Pocket News Generator /wp-admin/options-general.php?page=pocket_news_generator_options_page | 1,070 | 2.03 | 23.37 | 31.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Uninstall procedure had uncaught errors
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the pocket-news-generator handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- widget_recent-comments
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
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=pocket_news_generator_options_page
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the pocket-news-generator handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 8 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=pocket_news_generator_options_page
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- > GET request to /wp-admin/tools.php?page=pocket_news_generator_generation_page
- > Notice in wp-content/plugins/pocket-news-generator/pocket-news-generator.php+401
Undefined index: action
- > GET request to /wp-admin/options-general.php?page=pocket_news_generator_options_page
- > Notice in wp-content/plugins/pocket-news-generator/pocket-news-generator.php+281
Undefined variable: tmp_request_code
- > GET request to /wp-admin/options-general.php?page=pocket_news_generator_options_page
- > Notice in wp-content/plugins/pocket-news-generator/pocket-news-generator.php+315
Undefined variable: result_consumer_key
- > GET request to /wp-admin/options-general.php?page=pocket_news_generator_options_page
- > Notice in wp-content/plugins/pocket-news-generator/pocket-news-generator.php+316
Undefined variable: result_access_token
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/pocket-news-generator/pocket-news-generator.php:50
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Donate link: Invalid url: ""
- Screenshots: Please add images for these screenshots: #1 (Prameter registration form in setting page), #2 (Guide to get a consumer key and access token), #3 (Search form for pocket data retrieval), #4 (Sample of generated HTML code)
pocket-news-generator/pocket-news-generator.php 92% from 13 tests
The entry point to "Pocket News Generator" version 0.2.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Description: Please don't use more than 140 characters for the plugin description (currently 232 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
Good job! No executable or dangerous file extensions detected1,044 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 240 | 187 | 812 |
PO File | 1 | 77 | 79 | 197 |
CSS | 1 | 8 | 3 | 35 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 21.80 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 64.00 |
Average method complexity | 4.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 38.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 3 | 10.34% |
▷ Public methods | 28 | 96.55% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 3.45% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 50 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 50 | 100.00% |
▷ Public constants | 50 | 100.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
4 PNG files occupy 0.17MB with 0.10MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-4.png | 53.78KB | 21.99KB | ▼ 59.11% |
screenshot-3.png | 42.28KB | 18.20KB | ▼ 56.96% |
screenshot-2.png | 30.33KB | 13.67KB | ▼ 54.92% |
screenshot-1.png | 50.94KB | 20.84KB | ▼ 59.09% |