Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/top-social-stories-free/top-stories.php+1040
Function create_function() is deprecated
Server metrics [RAM: ▼1.49MB] [CPU: ▼55.13ms] Passed 4 tests
This is a short check of server-side resources used by Top Social Stories Free
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.51 ▼0.95 | 6.73 ▼34.63 |
Dashboard /wp-admin | 2.53 ▼0.81 | 7.70 ▼53.88 |
Posts /wp-admin/edit.php | 2.53 ▼0.82 | 8.85 ▼32.45 |
Add New Post /wp-admin/post-new.php | 2.53 ▼3.35 | 7.28 ▼99.57 |
Media Library /wp-admin/upload.php | 2.53 ▼0.70 | 6.92 ▼27.47 |
Top Social Stories /wp-admin/edit.php?page=top_stories_menu_analytics | 2.53 | 8.00 |
/wp-admin/admin.php?page=top_stories_facebook_config_page | 2.53 | 9.39 |
Top Stories Settings /wp-admin/options-general.php?page=top_stories_menu_settings | 2.53 | 7.09 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 30 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_top_stories |
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_top_stories_widget |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Top Social Stories Free
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,914 ▲168 | 13.58 ▼0.72 | 8.88 ▲6.96 | 45.39 ▲0.54 |
Dashboard /wp-admin | 2,217 ▲29 | 4.84 ▼0.03 | 106.15 ▼13.49 | 41.98 ▼1.12 |
Posts /wp-admin/edit.php | 2,159 ▲70 | 2.04 ▲0.02 | 38.13 ▼2.52 | 36.95 ▲2.83 |
Add New Post /wp-admin/post-new.php | 1,539 ▲10 | 23.34 ▲5.04 | 653.73 ▲36.67 | 50.38 ▼12.20 |
Media Library /wp-admin/upload.php | 1,396 ▲8 | 4.23 ▲0.03 | 95.10 ▼11.56 | 43.46 ▲0.80 |
Top Social Stories /wp-admin/edit.php?page=top_stories_menu_analytics | 1,111 | 2.57 | 29.26 | 45.10 |
/wp-admin/admin.php?page=top_stories_facebook_config_page | 862 | 2.17 | 21.51 | 23.14 |
Top Stories Settings /wp-admin/options-general.php?page=top_stories_menu_settings | 1,151 | 1.69 | 25.47 | 31.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/top-social-stories-free/top-stories.php+1040
Function create_function() is deprecated
- Zombie tables detected upon uninstall: 1 table
- wp_top_stories
- This plugin did not uninstall successfully, leaving 7 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_top_stories_widget
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- 6 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=top_stories_menu_settings
- > Deprecated in wp-content/plugins/top-social-stories-free/top-stories.php+1040
Function create_function() is deprecated
- > GET request to /wp-admin/edit.php?page=top_stories_menu_analytics
- > Notice in wp-content/plugins/top-social-stories-free/top-stories.php+339
Undefined variable: days
SRP 50% 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 items
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/top-social-stories-free/widget.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/top-social-stories-free/charts.php:6
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/top-social-stories-free/widget.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Tags: There are too many tags (28 tag instead of maximum 10)
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== top-social-stories-free ===
)
top-social-stories-free/top-stories.php 85% from 13 tests
The principal PHP file in "Top Social Stories Free" v. 1.83 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("top-social-stories-free.php" instead of "top-stories.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 280 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
No dangerous file extensions were detected1,690 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 365 | 187 | 1,322 |
CSS | 2 | 16 | 9 | 257 |
JavaScript | 1 | 32 | 8 | 111 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 36.00 |
▷ Minimum class complexity | 36.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 8.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 31 | |
▷ Named functions | 31 | 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
21 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/fire100.png | 0.79KB | 0.96KB | 0.00% |
images/upm.png | 0.37KB | 0.26KB | ▼ 30.08% |
images/fire1000.png | 0.80KB | 0.96KB | 0.00% |
images/fb-admin-icon.png | 0.37KB | 0.27KB | ▼ 25.94% |
images/ko.png | 0.68KB | 0.52KB | ▼ 23.81% |