Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼2.29ms] Passed 4 tests
This is a short check of server-side resources used by Newpost Catch
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 35.70 ▼6.46 |
Dashboard /wp-admin | 3.38 ▲0.08 | 43.50 ▼0.15 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 42.86 ▼5.38 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 92.00 ▲2.85 |
Media Library /wp-admin/upload.php | 3.31 ▲0.07 | 38.20 ▲3.50 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_newpostcatch |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Newpost Catch
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.63 ▼0.63 | 1.73 ▼0.32 | 43.13 ▼8.30 |
Dashboard /wp-admin | 2,209 ▲21 | 5.89 ▲0.99 | 100.33 ▼11.72 | 39.50 ▼2.00 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.05 ▲0.03 | 35.21 ▼6.35 | 35.95 ▲0.85 |
Add New Post /wp-admin/post-new.php | 1,528 ▼5 | 22.98 ▼0.25 | 607.20 ▼27.46 | 56.00 ▲1.04 |
Media Library /wp-admin/upload.php | 1,391 ▲9 | 4.29 ▲0.08 | 100.63 ▲1.60 | 42.04 ▼1.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means 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 fix the following items
- 2× 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/newpost-catch/class.php:4
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/newpost-catch/class.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Screenshots: Add images for these screenshots: #1 (To display the eye-catching(Thumbnail) set to Latest Post.), #2 (Localized support is in order.), #3 (Is simple to add the side bar, to set the size of the thumbnail, posts, post date)
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== newpost-catch ===
)
newpost-catch/newpost-catch.php Passed 13 tests
The primary PHP file in "Newpost Catch" version 1.3.17 is used by WordPress to initiate all plugin functionality
42 characters long description:
Thumbnails in new articles setting widget.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin398 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 63 | 70 | 287 |
PO File | 1 | 34 | 1 | 94 |
CSS | 1 | 8 | 8 | 17 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 25.00 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 6.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.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 | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
no_thumb.png | 0.80KB | 0.43KB | ▼ 46.48% |
screenshot-1.png | 50.60KB | 19.75KB | ▼ 60.96% |
screenshot-2.png | 11.21KB | 4.33KB | ▼ 61.34% |