Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/software-news/updatestar-news.php+201
Function create_function() is deprecated
Server metrics [RAM: ▼1.84MB] [CPU: ▼53.25ms] Passed 4 tests
Analyzing server-side resources used by Software News
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.14 ▼1.32 | 5.17 ▼33.82 |
Dashboard /wp-admin | 2.16 ▼1.14 | 6.04 ▼43.21 |
Posts /wp-admin/edit.php | 2.16 ▼1.19 | 7.00 ▼43.90 |
Add New Post /wp-admin/post-new.php | 2.16 ▼3.72 | 7.06 ▼92.07 |
Media Library /wp-admin/upload.php | 2.16 ▼1.07 | 5.74 ▼26.85 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
widget_updatestar-news |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Software News
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲90 | 14.48 ▲0.08 | 2.12 ▲0.38 | 43.47 ▲4.01 |
Dashboard /wp-admin | 2,203 ▲15 | 5.84 ▲0.97 | 104.95 ▼3.25 | 41.78 ▼4.56 |
Posts /wp-admin/edit.php | 2,086 ▼0 | 2.05 ▲0.02 | 36.04 ▼0.33 | 30.50 ▼6.65 |
Add New Post /wp-admin/post-new.php | 1,533 ▲19 | 21.02 ▲3.55 | 675.12 ▲60.20 | 54.15 ▲4.89 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.13 ▼0.05 | 115.54 ▲17.62 | 45.75 ▼1.00 |
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
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/software-news/updatestar-news.php+201
Function create_function() is deprecated
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_updatestar-news
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 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/software-news/updatestar-news.php
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
require_once(ABSPATHWPINC/class-simplepie.php): failed to open stream: No such file or directory in wp-content/plugins/software-news/Date.php on line 46
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHWPINC/class-simplepie.php' (include_path='.:/usr/share/php') in wp-content/plugins/software-news/Date.php on line 46
- > PHP Warning
Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/software-news/Date.php on line 46
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/software-news/Date.php on line 46
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: news, software, updatestar
software-news/updatestar-news.php 92% from 13 tests
The principal PHP file in "Software News" v. 1.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("software-news.php" instead of "updatestar-news.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected179 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 36 | 132 | 179 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 21.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 6.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.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 | 8 | |
▷ Static methods | 1 | 12.50% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected