Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
- Install procedure validation failed for this plugin
- > Error in wp-includes/ms-blogs.php+224
Uncaught Error: Class 'WP_Site' not found in wp-includes/ms-blogs.php:224
Stack trace:
#0 wp-content/plugins/links2tabs/links2tabs.php(73): get_blog_details()
#1 wp-admin/includes/plugin.php(2318): include_once('/var/www/wordpr...')
#2 wp-admin/includes/plugin.php(663): plugin_sandbox_scrape()
Server metrics [RAM: ▲0.00MB] [CPU: ▼6.46ms] Passed 4 tests
A check of server-side resources used by Links2Tabs
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 36.07 ▼4.44 |
Dashboard /wp-admin | 3.31 ▲0.00 | 48.66 ▼2.64 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 53.86 ▼2.29 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 87.21 ▼16.40 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.99 ▼2.36 |
Server storage [IO: ▲0.64MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Links2Tabs
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.34 ▼0.02 | 1.95 ▲0.08 | 52.66 ▲9.94 |
Dashboard /wp-admin | 2,195 ▲18 | 5.62 ▼0.05 | 89.72 ▼0.00 | 40.88 ▼2.22 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.94 ▼0.01 | 52.98 ▲11.30 | 38.77 ▲3.15 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.20 ▼0.43 | 673.73 ▲37.15 | 56.06 ▲2.23 |
Media Library /wp-admin/upload.php | 1,397 ▼0 | 4.16 ▼0.03 | 97.56 ▼11.57 | 45.27 ▲1.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 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_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
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 items
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/links2tabs/links2tabs.php on line 68
- > PHP Notice
Undefined variable: number_of_bases in wp-content/plugins/links2tabs/links2tabs.php on line 77
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/links2tabs/links2tabs.php:98
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/links2tabs/links2tabs_settings_page.php:4
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Screenshots: Screenshot #1 (All references opened with one click) image required
links2tabs/links2tabs.php 92% from 13 tests
The entry point to "Links2Tabs" version 0.0.6 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Description: Keep the plugin description shorter than 140 characters (currently 542 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected794 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 134 | 104 | 775 |
HTML | 1 | 4 | 0 | 19 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.58MB with 0.36MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 88.16KB | 44.45KB | ▼ 49.58% |
screenshot-3.png | 363.42KB | 107.33KB | ▼ 70.47% |
screenshot-2.png | 139.93KB | 48.78KB | ▼ 65.14% |