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
These installer errors require your attention
- The plugin did not install without errors
- > Notice in wp-content/plugins/sm2wp-twitter-minimal/sm2wp.php+17
Constant WP_POST_REVISIONS already defined
Server metrics [RAM: ▼1.61MB] [CPU: ▼47.92ms] Passed 4 tests
A check of server-side resources used by Social Media 2 WordPress for Twitter
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.38 ▼1.08 | 6.92 ▼30.09 |
Dashboard /wp-admin | 2.40 ▼0.90 | 7.28 ▼39.44 |
Posts /wp-admin/edit.php | 2.40 ▼0.96 | 8.31 ▼39.80 |
Add New Post /wp-admin/post-new.php | 2.40 ▼3.49 | 7.07 ▼82.36 |
Media Library /wp-admin/upload.php | 2.40 ▼0.83 | 7.69 ▼27.59 |
SM2WP / Twitter /wp-admin/options-general.php?page=sm2wp-twitter | 2.40 | 7.93 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 9 new options
New WordPress options |
---|
can_compress_scripts |
tfw_errors |
widget_recent-posts |
widget_theysaidso_widget |
tfw_info |
widget_recent-comments |
theysaidso_admin_options |
tfw_schedule |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Social Media 2 WordPress for Twitter
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.51 ▲0.27 | 1.70 ▲0.06 | 38.36 ▼7.93 |
Dashboard /wp-admin | 2,196 ▲21 | 5.57 ▼0.14 | 81.06 ▼21.85 | 43.43 ▲0.36 |
Posts /wp-admin/edit.php | 2,104 ▲7 | 2.03 ▲0.07 | 33.90 ▼8.10 | 33.29 ▼4.65 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.15 ▼0.07 | 648.37 ▼33.82 | 52.63 ▼1.99 |
Media Library /wp-admin/upload.php | 1,398 ▲1 | 4.12 ▼0.07 | 94.51 ▼4.03 | 42.94 ▼0.92 |
SM2WP / Twitter /wp-admin/options-general.php?page=sm2wp-twitter | 1,368 | 1.74 | 28.49 | 41.92 |
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
These items require your attention
- Uninstall procedure validation failed for this plugin
- > Warning in wp-content/plugins/sm2wp-twitter-minimal/sm2wp.php+69
include_once(updater.php): failed to open stream: No such file or directory
- This plugin did not uninstall successfully, leaving 9 options in the database
- theysaidso_admin_options
- widget_recent-comments
- tfw_errors
- db_upgraded
- tfw_info
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- tfw_schedule
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=sm2wp-twitter
- > Warning in wp-content/plugins/sm2wp-twitter-minimal/sm2wp.php+69
include_once(updater.php): failed to open stream: No such file or directory
- > GET request to /wp-admin/options-general.php?page=sm2wp-twitter
- > Warning in wp-content/plugins/sm2wp-twitter-minimal/sm2wp.php+69
include_once(): Failed opening 'updater.php' for inclusion (include_path='.:/usr/share/php')
SRP 50% 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
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/sm2wp-twitter-minimal/admin.php:75
- > 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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Tags: There are too many tags (11 tag instead of maximum 10)
sm2wp-twitter-minimal/sm2wp.php 92% from 13 tests
The primary PHP file in "Social Media 2 WordPress for Twitter" version 1.0.1 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("sm2wp-twitter-minimal.php" instead of "sm2wp.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected975 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 182 | 14 | 975 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 29.50 |
▷ Minimum class complexity | 17.00 |
▷ Maximum class complexity | 42.00 |
Average method complexity | 3.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 43 | |
▷ Static methods | 14 | 32.56% |
▷ Public methods | 33 | 76.74% |
▷ Protected methods | 4 | 9.30% |
▷ Private methods | 6 | 13.95% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 1 | 33.33% |
▷ Class constants | 2 | 66.67% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin