Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.01MB] [CPU: ▼13.41ms] Passed 4 tests
Analyzing server-side resources used by Social Linkz
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 37.20 ▼1.14 |
Dashboard /wp-admin | 3.31 ▼0.04 | 46.12 ▼23.36 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 42.46 ▼5.10 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 78.58 ▼24.02 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.07 ▲3.17 |
Server storage [IO: ▲2.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 220 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_pluginSL_sociallinkz |
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Social Linkz
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲43 | 14.22 ▼0.13 | 1.73 ▲0.07 | 44.45 ▼0.32 |
Dashboard /wp-admin | 2,198 ▲21 | 5.56 ▲0.06 | 95.30 ▼12.37 | 44.74 ▼3.79 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 2.01 ▼0.02 | 36.80 ▲1.18 | 35.22 ▼0.59 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.13 ▲0.04 | 640.11 ▲38.94 | 48.66 ▼4.92 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.22 ▲0.03 | 95.58 ▲0.87 | 41.83 ▲1.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method sociallinkz::uninstall_removedata() should not be called statically
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 3× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/social-linkz/core.class.php
- > /wp-content/plugins/social-linkz/core.php
- > /wp-content/plugins/social-linkz/social-linkz.php
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
require_once(): Failed opening required 'core.php' (include_path='.:/usr/share/php') in wp-content/plugins/social-linkz/core/templates/my-plugin.php on line 18
- > PHP Warning
require_once(core.php): failed to open stream: No such file or directory in wp-content/plugins/social-linkz/core/templates/my-plugin.php on line 18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (The configuration page of the plugin), #2 (The buttons)
social-linkz/core.class.php 85% from 13 tests
The primary PHP file in "Social Linkz" version %s by %s', 'SL_frame... is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("social-linkz.php" instead of "core.class.php")
- Version: The version number should only use digits and periods (ex. "1.0.3" instead of "%s by %s', 'SL_frame...")
Code Analysis 97% from 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 plugin21,963 lines of code in 92 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 50 | 4,732 | 0 | 10,518 |
PHP | 20 | 1,746 | 2,329 | 9,962 |
JavaScript | 7 | 220 | 253 | 836 |
CSS | 11 | 97 | 14 | 532 |
Markdown | 1 | 20 | 0 | 84 |
JSON | 1 | 0 | 0 | 29 |
INI | 2 | 0 | 0 | 2 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
It is recommended to fix the following
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 137)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 46.74 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 340.00 |
Average method complexity | 6.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 137.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 35 | |
▷ Abstract classes | 1 | 2.86% |
▷ Concrete classes | 34 | 97.14% |
▷ Final classes | 0 | 0.00% |
Methods | 299 | |
▷ Static methods | 96 | 32.11% |
▷ Public methods | 294 | 98.33% |
▷ Protected methods | 3 | 1.00% |
▷ Private methods | 2 | 0.67% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 35 | |
▷ Global constants | 35 | 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
58 PNG files occupy 0.52MB with 0.19MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
core/img/progressbar.png | 1.43KB | 1.25KB | ▼ 12.96% |
img/arrow.png | 1.20KB | 0.12KB | ▼ 89.94% |
core/img/tab_trad.png | 0.90KB | 1.08KB | 0.00% |
core/img/tab_doc.png | 0.82KB | 0.84KB | 0.00% |
img/lnk_twitter_hosted.png | 7.81KB | 1.35KB | ▼ 82.68% |