Benchmarks
Plugin footprint 40% 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
- This plugin did not install gracefully
- > Notice in wp-content/plugins/social-networks-timelines/social-network-timelines.php+47
Undefined variable: installed_ver
Server metrics [RAM: ▲0.03MB] [CPU: ▼8.27ms] Passed 4 tests
Analyzing server-side resources used by Social Networks Timelines
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 35.49 ▼7.08 |
Dashboard /wp-admin | 3.35 ▲0.00 | 50.91 ▼14.72 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 45.92 ▼0.73 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 85.16 ▼10.53 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 35.35 ▲2.01 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 9 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_social_networks |
New WordPress options |
---|
widget_twitter_timeline_widget |
can_compress_scripts |
theysaidso_admin_options |
sntl_db_version |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Social Networks Timelines
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,898 ▲127 | 14.02 ▼0.62 | 29.55 ▲27.47 | 40.30 ▼2.72 |
Dashboard /wp-admin | 2,218 ▲27 | 5.88 ▲1.00 | 111.59 ▲0.86 | 44.25 ▼0.11 |
Posts /wp-admin/edit.php | 2,101 ▲9 | 2.01 ▼0.03 | 36.72 ▼0.88 | 32.67 ▼2.41 |
Add New Post /wp-admin/post-new.php | 1,558 ▲44 | 18.35 ▲0.80 | 645.46 ▼40.67 | 74.57 ▲21.27 |
Media Library /wp-admin/upload.php | 1,403 ▲15 | 4.17 ▼0.02 | 96.90 ▼2.62 | 44.32 ▼2.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- The uninstall procedure failed, leaving 1 table in the database
- wp_social_networks
- The uninstall procedure has failed, leaving 8 options in the database
- sntl_db_version
- widget_recent-posts
- can_compress_scripts
- widget_twitter_timeline_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/social-networks-timelines/includes/widget.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/social-networks-timelines/social-network-timelines.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
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
4 plugin tags: widget, social network, timeline, twitter
social-networks-timelines/social-network-timelines.php 92% from 13 tests
The main PHP script in "Social Networks Timelines" version 1.0.1 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("social-networks-timelines.php" instead of "social-network-timelines.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin344 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 36 | 22 | 288 |
PO File | 1 | 68 | 124 | 42 |
JavaScript | 1 | 2 | 0 | 14 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.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 | 2 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 2 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin