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
The following installer errors require your attention
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/wpfeed-news/feednews.php+137
Function create_function() is deprecated
Server metrics [RAM: ▼1.96MB] [CPU: ▼49.84ms] Passed 4 tests
A check of server-side resources used by WpFeed News
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.43 | 4.31 ▼38.66 |
Dashboard /wp-admin | 2.05 ▼1.26 | 5.52 ▼39.56 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.80 ▼39.05 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.57 ▼82.10 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.71 ▼30.63 |
Server storage [IO: ▲0.03MB] [DB: ▲0.88MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for WpFeed News
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲49 | 13.24 ▼1.33 | 1.80 ▼0.31 | 46.73 ▼1.43 |
Dashboard /wp-admin | 2,210 ▲22 | 4.86 ▼0.15 | 107.32 ▲0.99 | 43.80 ▼3.99 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.04 ▲0.04 | 40.19 ▲0.79 | 36.26 ▲2.13 |
Add New Post /wp-admin/post-new.php | 1,522 ▲8 | 23.55 ▲5.97 | 676.36 ▲2.21 | 56.39 ▲5.37 |
Media Library /wp-admin/upload.php | 1,395 ▲4 | 4.20 ▼0.03 | 95.96 ▼5.73 | 40.03 ▼5.15 |
Wp Feed News /wp-admin/feednews.php | 26 | 0.44 | 0.09 | 12.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.88MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/wpfeed-news/feednews.php+137
Function create_function() is deprecated
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wpfeed-news/feednews.php:132
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
- > GET request to /wp-admin/feednews.php
- > Network (severe)
wp-admin/feednews.php - Failed to load resource: the server responded with a status of 404 (Not 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
Please fix the following attributes:
- Screenshots: Please add an image for screenshot #1 (screenshot.png)
wpfeed-news/feednews.php 92% from 13 tests
This is the main PHP file of "WpFeed News" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("wpfeed-news.php" instead of "feednews.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
No dangerous file extensions were detected131 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 82 | 47 | 131 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 3.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
(invalid) screenshot.png | 24.99KB | 0.00KB | ▼ 100.00% |