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.07MB] [CPU: ▼6.77ms] Passed 4 tests
A check of server-side resources used by SmartFormat feed for SmartNews
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 39.59 ▼0.62 |
Dashboard /wp-admin | 3.38 ▲0.07 | 43.52 ▼3.33 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 43.98 ▼1.24 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 79.91 ▼21.07 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 33.00 ▼1.44 |
SmartFormat /wp-admin/options-general.php?page=smartformat | 3.29 | 35.87 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for SmartFormat feed for SmartNews
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.27 ▼1.10 | 1.70 ▼0.10 | 43.70 ▲4.20 |
Dashboard /wp-admin | 2,210 ▲22 | 4.87 ▼1.04 | 107.79 ▼12.04 | 44.37 ▲0.17 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.01 ▼0.04 | 34.40 ▼2.75 | 32.12 ▲0.13 |
Add New Post /wp-admin/post-new.php | 1,536 ▲22 | 23.27 ▲5.76 | 635.80 ▼40.60 | 58.86 ▲8.06 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.21 ▲0.03 | 95.28 ▼0.73 | 41.88 ▲0.64 |
SmartFormat /wp-admin/options-general.php?page=smartformat | 1,039 | 3.15 | 43.24 | 30.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-comments
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
The smoke test was a success, however most plugin functionality was not tested
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
Almost there! Just fix the following items
- 8× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/smartformat/admin-logo-image.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/smartformat/admin.php:2
- > PHP Warning
Use of undefined constant SMARTFORMAT__PLUGIN_DIR - assumed 'SMARTFORMAT__PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/smartformat/class.smartformat.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/smartformat/smartformat.php:14
- > PHP Fatal error
require_once(): Failed opening required 'SMARTFORMAT__PLUGIN_DIR/class.smartformat-admin.php' (include_path='.:/usr/share/php') in wp-content/plugins/smartformat/class.smartformat.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function feed_content_type() in wp-content/plugins/smartformat/feed.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/smartformat/admin-sponsored-links.php:2
- > PHP Warning
require_once(SMARTFORMAT__PLUGIN_DIR/class.smartformat-admin.php): failed to open stream: No such file or directory in wp-content/plugins/smartformat/class.smartformat.php on line 3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
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: smartnews, rss, smartformat
smartformat/smartformat.php 92% from 13 tests
The main PHP file in "SmartFormat feed for SmartNews" ver. 1.3.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Domain Path: The domain path folder was not found ("/languages/")
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
Everything looks great! No dangerous files found in this plugin446 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 72 | 45 | 370 |
JavaScript | 2 | 21 | 1 | 76 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 4.33 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 1.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 21 | |
▷ Static methods | 1 | 4.76% |
▷ Public methods | 20 | 95.24% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 4.76% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 10 | 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
No PNG files were detected