Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.66MB] [CPU: ▼35.01ms] Passed 4 tests
Server-side resources used by FooTable
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.20 | 46.84 ▲0.76 |
Dashboard /wp-admin | 3.29 ▼0.02 | 25.59 ▼25.22 |
Posts /wp-admin/edit.php | 3.29 ▼0.07 | 24.49 ▼25.40 |
Add New Post /wp-admin/post-new.php | 3.29 ▼2.60 | 25.10 ▼80.32 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 26.79 ▼9.10 |
FooTable /wp-admin/options-general.php?page=footable | 3.29 | 25.30 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by FooTable
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,944 ▲183 | 13.45 ▼0.92 | 10.95 ▲9.13 | 41.74 ▼2.12 |
Dashboard /wp-admin | 2,209 ▲38 | 5.64 ▼0.03 | 93.79 ▼5.11 | 42.81 ▼0.65 |
Posts /wp-admin/edit.php | 2,114 ▲14 | 2.04 ▲0.05 | 36.24 ▼13.93 | 34.95 ▼1.09 |
Add New Post /wp-admin/post-new.php | 1,548 ▲22 | 22.87 ▼0.37 | 668.18 ▲2.39 | 36.71 ▼23.63 |
Media Library /wp-admin/upload.php | 1,414 ▲17 | 4.24 ▲0.02 | 111.68 ▲4.87 | 47.56 ▼1.92 |
FooTable /wp-admin/options-general.php?page=footable | 1,468 | 2.16 | 38.35 | 36.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/footable/includes/Foo_Plugin_Base.php+657
Function create_function() is deprecated
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- 9 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=footable
- > Deprecated in wp-content/plugins/footable/includes/Foo_Plugin_Base.php+657
Function create_function() is deprecated
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
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/footable/includes/demo.php
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/footable/views/settings.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/footable/class.footable.php:15
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/footable/views/settings.php on line 9
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/footable/views/settings.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/footable/views/settings.php:17
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/footable/views/settings.php on line 9
- > PHP Notice
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)
Everything seems fine, but this is not an exhaustive test
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
3 plugin tags: responsive, jquery, tables
footable/footable.php Passed 13 tests
Analyzing the main PHP file in "FooTable" version 0.3.1
63 characters long description:
FooTable makes your HTML tables look awesome on smaller devices
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
Success! There were no dangerous files found in this plugin1,651 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 318 | 228 | 1,160 |
CSS | 5 | 48 | 11 | 286 |
SVG | 1 | 0 | 0 | 78 |
JavaScript | 6 | 19 | 14 | 75 |
Markdown | 1 | 31 | 0 | 52 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 18.71 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 2.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 1 | 14.29% |
▷ Concrete classes | 6 | 85.71% |
▷ Final classes | 0 | 0.00% |
Methods | 72 | |
▷ Static methods | 1 | 1.39% |
▷ Public methods | 71 | 98.61% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 1.39% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 14 | |
▷ Global constants | 1 | 7.14% |
▷ Class constants | 13 | 92.86% |
▷ Public constants | 13 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
4 compressed PNG files occupy 0.00MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/images/active.png | 0.42KB | 0.41KB | ▼ 3.00% |
css/img/device-sprite.png | 1.28KB | 1.21KB | ▼ 5.12% |
includes/images/disabled.png | 0.44KB | 0.41KB | ▼ 6.03% |
includes/images/suspended.png | 0.43KB | 0.41KB | ▼ 4.33% |