Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
- The plugin cannot be installed
- > Warning in wp-content/plugins/taboola/taboola_widget.php+698
mysqli_get_server_info() expects exactly 1 parameter, 0 given
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.11ms] Passed 4 tests
An overview of server-side resources used by Taboola
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 40.21 ▼4.29 |
Dashboard /wp-admin | 3.32 ▲0.02 | 44.83 ▼4.41 |
Posts /wp-admin/edit.php | 3.43 ▲0.08 | 48.96 ▲3.34 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 90.21 ▼9.32 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 32.90 ▲1.57 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] 67% from 3 tests
Filesystem and database footprint
Please try to fix the following items
- Illegal file modification found: 1 file (0.00KB) outside of "wp-content/plugins/taboola/" and "wp-content/uploads/"
- (new file) wp-admin/logs/.empty
Filesystem: 16 new files
Database: 1 new table, 7 new options
New tables |
---|
wp__taboola_settings |
New WordPress options |
---|
taboola_plugin_version |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Taboola
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲58 | 14.68 ▲0.34 | 1.60 ▼0.10 | 43.01 ▼1.48 |
Dashboard /wp-admin | 2,213 ▲35 | 5.56 ▼0.11 | 88.57 ▼13.16 | 70.50 ▲30.48 |
Posts /wp-admin/edit.php | 2,121 ▲21 | 1.95 ▲0.01 | 39.22 ▲0.30 | 32.89 ▼4.74 |
Add New Post /wp-admin/post-new.php | 1,553 ▲27 | 22.98 ▼0.31 | 663.20 ▲26.69 | 49.28 ▼2.09 |
Media Library /wp-admin/upload.php | 1,418 ▲21 | 4.13 ▼0.01 | 98.24 ▼1.64 | 61.63 ▲19.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp__taboola_settings
- Zombie WordPress options detected upon uninstall: 7 options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- taboola_plugin_version
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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 return non-empty strings:
- > /wp-content/plugins/taboola/settings.php
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/taboola/widget.php:4
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/taboola/settings.php:429
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/taboola/widget.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Tags: There are too many tags (31 tag instead of maximum 10)
taboola/taboola_widget.php 85% from 13 tests
The primary PHP file in "Taboola" version 2.1.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("taboola.php" instead of "taboola_widget.php")
- Description: Please use more than 10 characters for the plugin description (currently 7 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin2,786 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 550 | 415 | 2,649 |
JavaScript | 5 | 20 | 8 | 137 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 87.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 198.00 |
Average method complexity | 4.37 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.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 | 128 | |
▷ Static methods | 1 | 0.78% |
▷ Public methods | 108 | 84.38% |
▷ Protected methods | 16 | 12.50% |
▷ Private methods | 4 | 3.12% |
Functions | 7 | |
▷ Named functions | 6 | 85.71% |
▷ Anonymous functions | 1 | 14.29% |
Constants | 33 | |
▷ Global constants | 33 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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.06MB with 0.04MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/taboola_icon.png | 3.15KB | 0.80KB | ▼ 74.47% |
img/taboola.png | 49.68KB | 23.75KB | ▼ 52.19% |
img/question-mark.png | 1.20KB | 0.29KB | ▼ 75.73% |
img/arrow_right_32.png | 4.12KB | 0.19KB | ▼ 95.30% |