Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▼0.68MB] [CPU: ▼16.34ms] Passed 4 tests
Server-side resources used by Post Tweets
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 37.18 ▼9.32 |
Dashboard /wp-admin | 3.33 ▲0.02 | 51.51 ▼4.58 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 51.38 ▲5.08 |
Add New Post /wp-admin/post-new.php | 3.11 ▼2.78 | 37.96 ▼50.63 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 36.15 ▼0.82 |
Tweets Settings /wp-admin/admin.php?page=viavi_tweets_option_page | 3.22 | 32.94 |
Post Tweets /wp-admin/admin.php?page=viavi_tweet_page | 3.22 | 29.01 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Post Tweets
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,949 ▲188 | 13.48 ▼0.87 | 8.39 ▲6.43 | 41.06 ▼5.22 |
Dashboard /wp-admin | 2,219 ▲42 | 5.60 ▼0.05 | 85.15 ▼15.94 | 85.20 ▲43.07 |
Posts /wp-admin/edit.php | 2,142 ▲45 | 1.99 ▼0.03 | 39.26 ▲2.93 | 33.41 ▼0.82 |
Add New Post /wp-admin/post-new.php | 6,261 ▲4,733 | 20.73 ▼2.40 | 944.34 ▲242.66 | 55.18 ▲2.78 |
Media Library /wp-admin/upload.php | 1,436 ▲36 | 4.20 ▼0.01 | 101.01 ▼2.74 | 77.73 ▲33.79 |
Tweets Settings /wp-admin/admin.php?page=viavi_tweets_option_page | 909 | 2.18 | 24.46 | 29.96 |
Post Tweets /wp-admin/admin.php?page=viavi_tweet_page | 814 | 2.01 | 25.92 | 25.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
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
Please take a closer look at the following
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/post-tweets/tweets-settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/post-tweets/index.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/post-tweets/tweets-post.php:34
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Screenshots: These screenshots require images: #1 (Post custom tweets), #2 (Set twitter account), #3 (If you want to post as tweet)
post-tweets/index.php 92% from 13 tests
This is the main PHP file of "Post Tweets" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("post-tweets.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin832 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 232 | 337 | 811 |
CSS | 1 | 0 | 0 | 12 |
JavaScript | 1 | 5 | 5 | 9 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 7.92 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 2.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 2 | 16.67% |
▷ Concrete classes | 10 | 83.33% |
▷ Final classes | 0 | 0.00% |
Methods | 76 | |
▷ Static methods | 10 | 13.16% |
▷ Public methods | 65 | 85.53% |
▷ Protected methods | 2 | 2.63% |
▷ Private methods | 9 | 11.84% |
Functions | 7 | |
▷ Named functions | 7 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.10MB with 0.04MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
style/twitter_icon.png | 0.57KB | 0.48KB | ▼ 15.49% |
screenshot-2.png | 64.41KB | 28.25KB | ▼ 56.14% |
screenshot-3.png | 16.06KB | 9.40KB | ▼ 41.51% |
screenshot-1.png | 22.87KB | 12.72KB | ▼ 44.38% |