Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼12.22ms] Passed 4 tests
A check of server-side resources used by Simple News
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 41.49 ▼1.17 |
Dashboard /wp-admin | 3.34 ▼0.00 | 45.60 ▼20.89 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 45.97 ▼7.34 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.15 | 85.20 ▼19.49 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 35.64 ▼0.21 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=news | 3.26 | 41.76 |
News /wp-admin/edit.php?post_type=news | 3.32 | 38.13 |
Add New /wp-admin/post-new.php?post_type=news | 6.03 | 87.61 |
News Tags /wp-admin/edit-tags.php?taxonomy=newstags&post_type=news | 3.26 | 34.94 |
Server storage [IO: ▲0.02MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
category_children |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Simple News
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲83 | 14.29 ▲0.02 | 1.74 ▼0.24 | 42.87 ▼4.25 |
Dashboard /wp-admin | 2,227 ▲50 | 5.49 ▼0.17 | 89.56 ▼8.98 | 39.26 ▼5.93 |
Posts /wp-admin/edit.php | 2,132 ▲32 | 2.02 ▼0.01 | 35.36 ▼2.37 | 32.93 ▼0.75 |
Add New Post /wp-admin/post-new.php | 1,555 ▲29 | 23.46 ▼0.06 | 681.99 ▲24.05 | 54.14 ▼5.02 |
Media Library /wp-admin/upload.php | 1,435 ▲32 | 4.17 ▼0.03 | 100.46 ▲1.87 | 45.68 ▲4.55 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=news | 1,487 | 2.13 | 30.81 | 35.72 |
News /wp-admin/edit.php?post_type=news | 1,196 | 1.99 | 34.91 | 31.90 |
Add New /wp-admin/post-new.php?post_type=news | 6,251 | 22.78 | 877.11 | 31.55 |
News Tags /wp-admin/edit-tags.php?taxonomy=newstags&post_type=news | 1,278 | 2.12 | 28.20 | 31.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- category_children
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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 fix the following items
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/simple-news/files/shortcode.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-news/news.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-news/files/admin.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/simple-news/files/widget.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-news/files/widget-text.php:31
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/simple-news/files/templates/archive-news.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: simple news, news list, news
simple-news/news.php 85% from 13 tests
The primary PHP file in "Simple News" version 2.8 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("simple-news.php" instead of "news.php")
- Domain Path: The domain path is invalid: folder "/translation" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin429 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 111 | 71 | 359 |
CSS | 2 | 17 | 0 | 70 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 3.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 18 | |
▷ Named functions | 18 | 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
There were not PNG files found in your plugin