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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.46MB] [CPU: ▼4.24ms] Passed 4 tests
Analyzing server-side resources used by Tagregator
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.97 ▲0.50 | 43.53 ▲7.86 |
Dashboard /wp-admin | 3.80 ▲0.46 | 48.86 ▼8.31 |
Posts /wp-admin/edit.php | 3.85 ▲0.50 | 48.13 ▲1.42 |
Add New Post /wp-admin/post-new.php | 6.34 ▲0.45 | 86.59 ▼15.97 |
Media Library /wp-admin/upload.php | 3.66 ▲0.43 | 39.12 ▲5.89 |
Instagram Media /wp-admin/edit.php?post_type=tggr-instagram | 3.76 | 40.70 |
Hashtags /wp-admin/edit-tags.php?taxonomy=hashtag | 3.65 | 36.00 |
Flickr Posts /wp-admin/edit.php?post_type=tggr-flickr | 3.76 | 36.83 |
Settings /wp-admin/admin.php?page=tggr_settings | 3.63 | 36.50 |
Tweets /wp-admin/edit.php?post_type=tggr-tweets | 3.76 | 36.94 |
Google+ Activities /wp-admin/edit.php?post_type=tggr-google | 3.76 | 37.44 |
Server storage [IO: ▲0.56MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 41 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
tggr_settings |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Tagregator
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,982 ▲211 | 14.00 ▼0.37 | 10.95 ▲9.03 | 42.46 ▲0.81 |
Dashboard /wp-admin | 2,259 ▲74 | 4.86 ▼1.01 | 100.29 ▼2.16 | 39.07 ▼8.61 |
Posts /wp-admin/edit.php | 2,124 ▲35 | 2.03 ▲0.00 | 34.61 ▼6.11 | 32.29 ▼3.94 |
Add New Post /wp-admin/post-new.php | 1,561 ▲26 | 17.77 ▼5.49 | 670.30 ▲63.57 | 59.57 ▲2.32 |
Media Library /wp-admin/upload.php | 1,441 ▲50 | 4.31 ▲0.19 | 95.58 ▼6.67 | 41.84 ▼6.69 |
Instagram Media /wp-admin/edit.php?post_type=tggr-instagram | 1,115 | 1.99 | 34.01 | 29.99 |
Hashtags /wp-admin/edit-tags.php?taxonomy=hashtag | 1,290 | 2.13 | 25.40 | 30.41 |
Flickr Posts /wp-admin/edit.php?post_type=tggr-flickr | 1,118 | 1.99 | 30.54 | 29.48 |
Settings /wp-admin/admin.php?page=tggr_settings | 953 | 2.05 | 26.08 | 30.37 |
Tweets /wp-admin/edit.php?post_type=tggr-tweets | 1,100 | 1.96 | 33.14 | 29.79 |
Google+ Activities /wp-admin/edit.php?post_type=tggr-google | 1,115 | 1.97 | 30.14 | 29.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- tggr_settings
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 14× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
- > /wp-content/plugins/tagregator/classes/tggr-shortcode-tagregator.php
- > /wp-content/plugins/tagregator/views/tggr-source-flickr/page-settings-section-header.php
- > /wp-content/plugins/tagregator/classes/tagregator.php
- > /wp-content/plugins/tagregator/classes/tggr-module.php
- > /wp-content/plugins/tagregator/views/tggr-source-twitter/page-settings-section-header.php
- > /wp-content/plugins/tagregator/classes/tggr-source-flickr.php
- > /wp-content/plugins/tagregator/classes/tggr-source-instagram.php
- > /wp-content/plugins/tagregator/views/tggr-source-instagram/page-settings-section-header.php
- > /wp-content/plugins/tagregator/classes/tggr-source-twitter.php
- > /wp-content/plugins/tagregator/classes/tggr-source-google.php
- 15× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post() in wp-content/plugins/tagregator/views/tggr-source-flickr/shortcode-tagregator-media-item.php:1
- > PHP Warning
Use of undefined constant TGGR_NAME - assumed 'TGGR_NAME' (this will throw an Error in a future version of PHP) in wp-content/plugins/tagregator/views/requirements-error.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post() in wp-content/plugins/tagregator/views/tggr-source-instagram/shortcode-tagregator-media-item.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/tagregator/views/tggr-source-instagram/page-settings-fields.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/tagregator/views/tggr-source-twitter/page-settings-fields.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/tagregator/views/requirements-error.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/tagregator/views/tggr-settings/page-log.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/tagregator/views/tggr-settings/page-settings.php:3
- > PHP Warning
Use of undefined constant TGGR_REQUIRED_PHP_VERSION - assumed 'TGGR_REQUIRED_PHP_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/tagregator/views/requirements-error.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/tagregator/views/tggr-source-google/page-settings-fields.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% 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: These screenshots need descriptions #2, #3 in tagregator/assets to your readme.txt
tagregator/bootstrap.php 92% from 13 tests
Analyzing the main PHP file in "Tagregator" version 0.6
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("tagregator.php" instead of "bootstrap.php")
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 detected2,697 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 23 | 406 | 866 | 1,634 |
CSS | 2 | 33 | 5 | 564 |
SVG | 1 | 0 | 0 | 399 |
JavaScript | 1 | 31 | 77 | 100 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 19.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 2.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 2 | 22.22% |
▷ Concrete classes | 7 | 77.78% |
▷ Final classes | 0 | 0.00% |
Methods | 129 | |
▷ Static methods | 40 | 31.01% |
▷ Public methods | 94 | 72.87% |
▷ Protected methods | 35 | 27.13% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 40 | |
▷ Global constants | 3 | 7.50% |
▷ Class constants | 37 | 92.50% |
▷ Public constants | 37 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 compressed PNG files occupy 0.01MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/source-logos/instagram.png | 3.29KB | 3.13KB | ▼ 4.93% |
images/source-logos/flickr.png | 0.92KB | 1.01KB | 0.00% |
images/source-logos/twitter.png | 1.10KB | 1.20KB | 0.00% |
images/source-logos/google-plus.png | 1.96KB | 1.63KB | ▼ 16.81% |