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.41MB] [CPU: ▼4.01ms] Passed 4 tests
A check of server-side resources used by PBP Newsticker
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.91 ▲0.45 | 40.70 ▼10.28 |
Dashboard /wp-admin | 3.75 ▲0.45 | 46.58 ▼1.66 |
Posts /wp-admin/edit.php | 3.80 ▲0.44 | 50.59 ▲0.46 |
Add New Post /wp-admin/post-new.php | 6.27 ▲0.38 | 95.68 ▼4.57 |
Media Library /wp-admin/upload.php | 3.61 ▲0.38 | 38.83 ▲7.72 |
PBP Newsticker /wp-admin/options-general.php?page=pbpNewsticker | 3.58 | 32.42 |
Server storage [IO: ▲0.35MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 45 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
PBP Newsticker: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,885 ▲139 | 13.66 ▼0.69 | 4.93 ▲3.28 | 43.68 ▼1.25 |
Dashboard /wp-admin | 2,210 ▲22 | 4.86 ▼1.05 | 110.82 ▲9.72 | 39.14 ▼5.04 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.02 ▼0.02 | 39.13 ▼2.71 | 36.41 ▼1.26 |
Add New Post /wp-admin/post-new.php | 1,533 ▲19 | 18.30 ▲0.54 | 607.20 ▼51.25 | 52.90 ▲8.82 |
Media Library /wp-admin/upload.php | 1,395 ▲16 | 4.23 ▲0.08 | 96.52 ▼5.16 | 43.23 ▲0.75 |
PBP Newsticker /wp-admin/options-general.php?page=pbpNewsticker | 857 | 2.03 | 38.26 | 33.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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
- 9× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'pbpNewsticker_Data_Source' not found in wp-content/plugins/pbp-newsticker/data_sources/free_form.class.php:8
- > PHP Fatal error
Uncaught Error: Class 'pbpNewsticker_Rss' not found in wp-content/plugins/pbp-newsticker/data_sources/facebook.class.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/pbp-newsticker/pbp-newsticker.php:60
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pbp-newsticker/data_source.class.php:549
- > PHP Fatal error
Uncaught Error: Class 'pbpNewsticker_Recent_Posts' not found in wp-content/plugins/pbp-newsticker/data_sources/recent_custom_post_types.class.php:8
- > PHP Fatal error
Uncaught Error: Class 'pbpNewsticker_Data_Source' not found in wp-content/plugins/pbp-newsticker/data_sources/twitter.class.php:7
- > PHP Fatal error
Uncaught Error: Class 'pbpNewsticker_Data_Source' not found in wp-content/plugins/pbp-newsticker/data_sources/recent_comments.class.php:8
- > PHP Fatal error
Uncaught Error: Class 'pbpNewsticker_Data_Source' not found in wp-content/plugins/pbp-newsticker/data_sources/recent_posts.class.php:8
- > PHP Fatal error
Uncaught Error: Class 'pbpNewsticker_Data_Source' not found in wp-content/plugins/pbp-newsticker/data_sources/rss.class.php:8
- > 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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
1 plugin tags: newsticker
pbp-newsticker/pbp-newsticker.php Passed 13 tests
The principal PHP file in "PBP Newsticker" v. 1.3.2 is loaded by WordPress automatically on each request
90 characters long description:
Create as many news tickers as you want and display them using shortcodes, widgets or PHP.
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
No dangerous file extensions were detected5,388 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 426 | 342 | 2,393 |
PHP | 10 | 412 | 851 | 1,820 |
CSS | 8 | 101 | 128 | 833 |
PO File | 1 | 151 | 159 | 342 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 26.70 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 97.00 |
Average method complexity | 2.98 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 1 | 10.00% |
▷ Concrete classes | 9 | 90.00% |
▷ Final classes | 0 | 0.00% |
Methods | 133 | |
▷ Static methods | 14 | 10.53% |
▷ Public methods | 128 | 96.24% |
▷ Protected methods | 4 | 3.01% |
▷ Private methods | 1 | 0.75% |
Functions | 3 | |
▷ Named functions | 3 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
18 compressed PNG files occupy 0.03MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
media/pbpNewsticker/skins/img/resume.png | 0.25KB | 0.13KB | ▼ 47.69% |
media/ui-lightness/images/ui-icons_ffffff_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
media/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png | 0.10KB | 0.10KB | ▼ 5.71% |
media/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png | 0.10KB | 0.11KB | 0.00% |
media/ui-lightness/images/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |