Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/news-from-surfrider-national/newsfromsurfridernational.php+10
Methods with the same name as their class will not be constructors in a future version of PHP; HQNewsWidget has a deprecated constructor
Server metrics [RAM: ▼1.94MB] [CPU: ▼56.62ms] Passed 4 tests
Server-side resources used by News From Surfrider National
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.06 ▼1.41 | 4.69 ▼33.39 |
Dashboard /wp-admin | 2.08 ▼1.27 | 6.17 ▼57.93 |
Posts /wp-admin/edit.php | 2.08 ▼1.28 | 5.19 ▼40.53 |
Add New Post /wp-admin/post-new.php | 2.08 ▼3.81 | 6.85 ▼94.62 |
Media Library /wp-admin/upload.php | 2.08 ▼1.15 | 5.57 ▼29.03 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
widget_hqnewswidget |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by News From Surfrider National
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.01 ▼0.35 | 1.98 ▲0.48 | 44.52 ▲6.22 |
Dashboard /wp-admin | 2,189 ▲14 | 5.59 ▼0.07 | 96.36 ▼2.43 | 43.66 ▲1.33 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 1.96 ▲0.01 | 35.03 ▼1.12 | 33.20 ▲0.88 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.61 ▲0.45 | 700.82 ▲29.40 | 45.97 ▼19.72 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.14 ▼0.11 | 111.53 ▲9.91 | 45.25 ▼2.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/news-from-surfrider-national/newsfromsurfridernational.php+10
Methods with the same name as their class will not be constructors in a future version of PHP; HQNewsWidget has a deprecated constructor
- This plugin does not fully uninstall, leaving 7 options in the database
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- widget_hqnewswidget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to a member function find() on bool in wp-content/plugins/news-from-surfrider-national/hqnews.php:6
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/news-from-surfrider-national/newsfromsurfridernational.php:10
- > PHP Warning
file_get_contents(http://www.surfrider.org/pages/news-from-surfrider-national/): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found\r in wp-content/plugins/news-from-surfrider-national/simple_html_dom.php on line 75
- > 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)
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: syndication, widget, news
news-from-surfrider-national/newsfromsurfridernational.php 92% from 13 tests
The main PHP script in "News From Surfrider National" version 1.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("news-from-surfrider-national.php" instead of "newsfromsurfridernational.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected1,307 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 204 | 262 | 1,307 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 109.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 197.00 |
Average method complexity | 4.74 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 87 | |
▷ Static methods | 1 | 1.15% |
▷ Public methods | 71 | 81.61% |
▷ Protected methods | 16 | 18.39% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 21 | |
▷ Global constants | 21 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin