Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▼1.64MB] [CPU: ▼51.67ms] Passed 4 tests
This is a short check of server-side resources used by Latest twitter updates with date and time
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.40 ▼1.10 | 10.57 ▼28.70 |
Dashboard /wp-admin | 2.41 ▼0.97 | 11.58 ▼51.77 |
Posts /wp-admin/edit.php | 2.41 ▼0.98 | 12.91 ▼37.19 |
Add New Post /wp-admin/post-new.php | 2.41 ▼3.51 | 11.51 ▼86.64 |
Media Library /wp-admin/upload.php | 2.41 ▼0.86 | 10.10 ▼31.09 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_latest_twitter_widget |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Latest twitter updates with date and time
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲49 | 14.25 ▼0.10 | 2.04 ▲0.41 | 46.42 ▲2.10 |
Dashboard /wp-admin | 2,199 ▲19 | 5.62 ▼0.05 | 83.26 ▼6.01 | 40.52 ▼1.67 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 1.96 ▼0.05 | 39.13 ▲0.27 | 34.99 ▼2.94 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.58 ▲0.31 | 697.54 ▼32.85 | 52.27 ▼8.80 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.16 ▼0.08 | 97.38 ▼21.38 | 45.06 ▼5.13 |
Latest tweet settings /wp-admin/latest_twitter_updates.php | 26 | 0.42 | 0.17 | 14.87 |
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 had uncaught errors
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in latest_twitter_widget is deprecated since version 4.3.0! Use __construct() instead.
- This plugin does not fully uninstall, leaving 7 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- widget_latest_twitter_widget
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/latest-twitter-updates-with-date-and-time/latest_twitter_updates.php:13
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/latest_twitter_updates.php
- > Network (severe)
wp-admin/latest_twitter_updates.php - Failed to load resource: the server responded with a status of 404 (Not 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
5 plugin tags: twitter, date, twitter updates, time, twitter plugin
latest-twitter-updates-with-date-and-time/latest_twitter_updates.php 92% from 13 tests
The main file in "Latest twitter updates with date and time" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
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 ("latest-twitter-updates-with-date-and-time.php" instead of "latest_twitter_updates.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected463 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 104 | 117 | 438 |
CSS | 1 | 1 | 0 | 25 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 23.50 |
▷ Minimum class complexity | 19.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 3.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 19 | 90.48% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 9.52% |
Functions | 3 | |
▷ Named functions | 3 | 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
3 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screen2.png | 25.67KB | 8.57KB | ▼ 66.62% |
screen1.png | 19.40KB | 7.61KB | ▼ 60.79% |
twitter_logo.png | 8.99KB | 3.27KB | ▼ 63.69% |