Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼134.57ms] Passed 4 tests
Analyzing server-side resources used by Like & Share My Site
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▲0.14 | 38.28 ▲15.59 |
Dashboard /wp-admin | 3.09 ▲0.03 | 60.82 ▲13.81 |
Posts /wp-admin/edit.php | 3.15 ▲0.03 | 57.33 ▲15.48 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.01 | 91.97 ▼570.19 |
Media Library /wp-admin/upload.php | 3.04 ▲0.03 | 36.35 ▲2.64 |
Like & Share My Site Options /wp-admin/plugins.php?page=lsms_admin | 3.08 | 28.61 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Like & Share My Site
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,708 ▲112 | 15.80 ▲0.16 | 10.36 ▲1.79 | 48.65 ▼2.36 |
Dashboard /wp-admin | 2,975 ▲44 | 5.92 ▼0.23 | 154.87 ▲0.42 | 145.93 ▲29.31 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.72 ▲0.01 | 76.87 ▲6.32 | 93.31 ▲3.70 |
Add New Post /wp-admin/post-new.php | 1,505 ▼178 | 18.59 ▼0.15 | 392.45 ▲8.56 | 113.67 ▲2.21 |
Media Library /wp-admin/upload.php | 1,815 ▲5 | 5.06 ▲0.04 | 150.97 ▼4.67 | 128.95 ▲7.06 |
Like & Share My Site Options /wp-admin/plugins.php?page=lsms_admin | 1,137 | 2.09 | 57.22 | 76.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/plugins.php?page=lsms_admin
- > Notice in wp-content/plugins/like-share-my-site/lsms.php+59
Undefined index: submit_lsms
- > GET request to /wp-admin/plugins.php?page=lsms_admin
- > User deprecated in wp-includes/functions.php+5221
screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/plugins.php?page=lsms_admin
- > User deprecated in wp-includes/functions.php+5221
get_screen_icon is deprecated since version 3.8.0 with no alternative available.
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
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/like-share-my-site/lsms.php:35
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
6 plugin tags: social, google, stumbleupon, twitter, tumblr...
like-share-my-site/lsms.php 92% from 13 tests
Analyzing the main PHP file in "Like & Share My Site" version 0.2
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("like-share-my-site.php" instead of "lsms.php")
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 detected185 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 30 | 51 | 140 |
CSS | 2 | 6 | 0 | 30 |
JavaScript | 3 | 1 | 0 | 15 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
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 | 5 | |
▷ Named functions | 5 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected