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.24MB] [CPU: ▼4.86ms] Passed 4 tests
A check of server-side resources used by WP Syndicate
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.73 ▲0.26 | 41.35 ▲0.51 |
Dashboard /wp-admin | 3.56 ▲0.21 | 46.55 ▼13.37 |
Posts /wp-admin/edit.php | 3.66 ▲0.30 | 48.90 ▲1.03 |
Add New Post /wp-admin/post-new.php | 6.14 ▲0.25 | 92.45 ▼7.59 |
Media Library /wp-admin/upload.php | 3.48 ▲0.24 | 39.06 ▲5.20 |
WP Syndicate /wp-admin/options-general.php?page=wp_syndicate | 3.42 | 32.28 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for WP Syndicate
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,857 ▲71 | 14.26 ▼0.11 | 1.72 ▼0.00 | 38.61 ▼2.55 |
Dashboard /wp-admin | 2,260 ▲86 | 5.59 ▲0.06 | 83.02 ▼3.42 | 39.66 ▼0.70 |
Posts /wp-admin/edit.php | 2,162 ▲62 | 2.01 ▼0.00 | 40.11 ▲3.92 | 35.52 ▼1.50 |
Add New Post /wp-admin/post-new.php | 1,578 ▲46 | 23.53 ▲0.42 | 596.19 ▼35.45 | 47.48 ▼3.59 |
Media Library /wp-admin/upload.php | 1,456 ▲53 | 4.20 ▲0.02 | 101.21 ▲6.54 | 45.56 ▲3.22 |
WP Syndicate /wp-admin/options-general.php?page=wp_syndicate | 854 | 2.00 | 24.37 | 28.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wp_syndicate
- > Notice in wp-content/plugins/wp-syndicate/modules/admin.php+48
Trying to access array offset on value of type bool
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
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wp-syndicate/wp-syndicate.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-syndicate/modules/admin.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-syndicate/modules/action.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-syndicate/modules/syndicate.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration Passed 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
2 plugin tags: feed, rss
wp-syndicate/wp-syndicate.php Passed 13 tests
"WP Syndicate" version 1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
131 characters long description:
It is a plug-in that WP Syndicate takes in an RSS feed, it is possible to capture the content of other sites on the WordPress site.
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
Good job! No executable or dangerous file extensions detected912 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 157 | 49 | 839 |
PO File | 1 | 31 | 34 | 73 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 28.60 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 62.00 |
Average method complexity | 3.98 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 41 | |
▷ Static methods | 1 | 2.44% |
▷ Public methods | 38 | 92.68% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 7.32% |
Functions | 9 | |
▷ Named functions | 8 | 88.89% |
▷ Anonymous functions | 1 | 11.11% |
Constants | 3 | |
▷ Global constants | 3 | 100.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
No PNG images were found in this plugin