Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/latest-posts-with-thumbnails-and-ads/latest-posts.php+13
Methods with the same name as their class will not be constructors in a future version of PHP; shomtek_latest_posts has a deprecated constructor
Server metrics [RAM: ▼1.85MB] [CPU: ▼55.39ms] Passed 4 tests
A check of server-side resources used by Latest Posts With Thumbnails and Ads
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.14 ▼1.32 | 4.52 ▼34.05 |
Dashboard /wp-admin | 2.17 ▼1.18 | 5.83 ▼56.04 |
Posts /wp-admin/edit.php | 2.17 ▼1.19 | 5.67 ▼39.29 |
Add New Post /wp-admin/post-new.php | 2.17 ▼3.72 | 5.52 ▼92.19 |
Media Library /wp-admin/upload.php | 2.17 ▼1.06 | 6.11 ▼29.85 |
Server storage [IO: ▲0.39MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_shomtek_latest_posts |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Latest Posts With Thumbnails and Ads
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,822 ▲61 | 13.99 ▼0.28 | 4.86 ▲3.02 | 41.23 ▼3.75 |
Dashboard /wp-admin | 2,192 ▲17 | 5.59 ▼0.02 | 86.66 ▼54.33 | 37.72 ▼11.09 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 2.00 ▼0.02 | 36.05 ▼5.90 | 32.21 ▼5.59 |
Add New Post /wp-admin/post-new.php | 1,535 ▲7 | 18.42 ▼4.71 | 611.98 ▼44.64 | 92.47 ▲48.28 |
Media Library /wp-admin/upload.php | 1,397 ▼6 | 4.19 ▲0.00 | 100.08 ▼4.46 | 42.43 ▼0.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/latest-posts-with-thumbnails-and-ads/latest-posts.php+13
Methods with the same name as their class will not be constructors in a future version of PHP; shomtek_latest_posts has a deprecated constructor
- The uninstall procedure has failed, leaving 7 options in the database
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_shomtek_latest_posts
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
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 0% 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 fix the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/latest-posts-with-thumbnails-and-ads/latest_posts_with_thumbnails_and_ads.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/latest-posts-with-thumbnails-and-ads/latest-posts.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (The widget backend interface), #2 (The widget frontend interface)
latest-posts-with-thumbnails-and-ads/latest_posts_with_thumbnails_and_ads.php 85% from 13 tests
Analyzing the main PHP file in "Latest Posts With Thumbnails and Ads" version 1.2.2
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("latest-posts-with-thumbnails-and-ads.php" instead of "latest_posts_with_thumbnails_and_ads.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 369 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected2,366 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 450 | 857 | 1,779 |
CSS | 2 | 8 | 24 | 283 |
PHP | 3 | 147 | 44 | 205 |
LESS | 1 | 6 | 10 | 99 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 27.00 |
▷ Minimum class complexity | 27.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 7.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.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
2 PNG files occupy 0.25MB with 0.17MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 203.53KB | 58.61KB | ▼ 71.20% |
screenshot-1.png | 51.52KB | 19.26KB | ▼ 62.60% |