Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.26MB] [CPU: ▼0.40ms] Passed 4 tests
This is a short check of server-side resources used by GN Publisher: Google News Compatible RSS Feeds
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 46.27 ▲4.64 |
Dashboard /wp-admin | 3.63 ▲0.33 | 47.79 ▼3.01 |
Posts /wp-admin/edit.php | 3.68 ▲0.33 | 49.62 ▲5.86 |
Add New Post /wp-admin/post-new.php | 6.17 ▲0.28 | 83.07 ▼9.09 |
Media Library /wp-admin/upload.php | 3.49 ▲0.26 | 39.68 ▲6.39 |
GN Publisher /wp-admin/options-general.php?page=gn-publisher-settings | 3.61 | 37.20 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 33 new files
Database: no new tables, 9 new options
New WordPress options |
---|
gnpub_is_default_feed |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
gnpub_include_featured_image |
gnpub_last_activation |
Browser metrics Passed 4 tests
This is an overview of browser requirements for GN Publisher: Google News Compatible RSS Feeds
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,906 ▲119 | 14.61 ▼0.03 | 1.69 ▼0.40 | 41.23 ▼3.52 |
Dashboard /wp-admin | 2,289 ▲109 | 5.68 ▲0.04 | 95.94 ▼4.03 | 43.37 ▼0.12 |
Posts /wp-admin/edit.php | 2,195 ▲95 | 2.04 ▲0.04 | 41.06 ▼5.21 | 35.89 ▲1.60 |
Add New Post /wp-admin/post-new.php | 1,617 ▲91 | 23.37 ▲0.11 | 616.03 ▲23.14 | 56.54 ▲3.77 |
Media Library /wp-admin/upload.php | 1,489 ▲92 | 4.32 ▲0.13 | 102.89 ▲8.03 | 42.99 ▲3.40 |
GN Publisher /wp-admin/options-general.php?page=gn-publisher-settings | 1,716 | 2.05 | 44.09 | 47.77 |
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
- Zombie WordPress options detected upon uninstall: 10 options
- gnpub_is_default_feed
- gnpub_include_featured_image
- gnpub_last_activation
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- gnpub_last_deactivation
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means 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
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/gn-publisher/templates/deactivate-feedback.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
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
7 plugin tags: google news, google, news, feeds, feed...
gn-publisher/gn-publisher.php Passed 13 tests
"GN Publisher: Google News Compatible RSS Feeds" version 1.5.11.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
78 characters long description:
GN Publisher: The easy way to make Google News Publisher compatible RSS feeds.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected2,851 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 517 | 649 | 1,935 |
CSS | 3 | 51 | 18 | 577 |
JavaScript | 4 | 46 | 17 | 339 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 55.00 |
Average method complexity | 4.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 1 | 10.00% |
Methods | 44 | |
▷ Static methods | 10 | 22.73% |
▷ Public methods | 41 | 93.18% |
▷ Protected methods | 2 | 4.55% |
▷ Private methods | 1 | 2.27% |
Functions | 35 | |
▷ Named functions | 31 | 88.57% |
▷ Anonymous functions | 4 | 11.43% |
Constants | 8 | |
▷ Global constants | 6 | 75.00% |
▷ Class constants | 2 | 25.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/google-news.png | 11.00KB | 4.62KB | ▼ 58.00% |
assets/images/google.png | 7.25KB | 3.34KB | ▼ 53.95% |
assets/images/gn-promo-gift.png | 19.62KB | 7.99KB | ▼ 59.26% |
assets/images/support.png | 4.67KB | 2.66KB | ▼ 43.03% |
assets/images/logo.png | 16.22KB | 6.85KB | ▼ 57.77% |