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.00MB] [CPU: ▼2.96ms] Passed 4 tests
Server-side resources used by Wppa+ extra Feeds
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 33.97 ▼4.40 |
Dashboard /wp-admin | 3.31 ▲0.00 | 44.81 ▲0.54 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.48 ▲0.31 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 85.60 ▼8.30 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.66 ▲1.43 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Wppa+ extra Feeds
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▼11 | 13.21 ▲0.03 | 1.70 ▼0.14 | 40.10 ▼6.38 |
Dashboard /wp-admin | 2,206 ▼0 | 5.83 ▼0.05 | 102.34 ▲9.06 | 37.54 ▼4.92 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.02 ▲0.02 | 39.21 ▲4.60 | 36.87 ▲3.35 |
Add New Post /wp-admin/post-new.php | 1,520 ▼13 | 23.35 ▲0.41 | 689.11 ▲88.20 | 54.20 ▲9.72 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.23 ▲0.05 | 96.38 ▼7.35 | 43.77 ▼3.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
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 8× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wppa-extra-feeds/admin/wppaef-html-promote-bar.php:36
- > PHP Warning
Use of undefined constant WPPAEF_HOME_SITE_URL - assumed 'WPPAEF_HOME_SITE_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/wppa-extra-feeds/admin/wppaef-html-promote-bar.php on line 36
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wppa-extra-feeds/wppaef-check-dep.php:21
- > PHP Warning
Use of undefined constant WPPAEF_PLUGIN_URL - assumed 'WPPAEF_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/wppa-extra-feeds/admin/wppaef-html-promote-bar.php on line 34
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wppa-extra-feeds/wppa-extra-feed.php:16
- > PHP Warning
Use of undefined constant WPPAEF_VERSION - assumed 'WPPAEF_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/wppa-extra-feeds/admin/wppaef-html-promote-bar.php on line 31
- > PHP Warning
Use of undefined constant WPPAEF_NAME - assumed 'WPPAEF_NAME' (this will throw an Error in a future version of PHP) in wp-content/plugins/wppa-extra-feeds/admin/wppaef-html-promote-bar.php on line 31
- > PHP Warning
Use of undefined constant WPPAEF_HOME_SITE_URL - assumed 'WPPAEF_HOME_SITE_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/wppa-extra-feeds/admin/wppaef-html-promote-bar.php on line 34
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: photoalbum, wppa, photoblog, photo, photowidget
wppa-extra-feeds/wppa-extra-feed.php 92% from 13 tests
"Wppa+ extra Feeds" version 0.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wppa-extra-feeds.php" instead of "wppa-extra-feed.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
Everything looks great! No dangerous files found in this plugin625 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 126 | 109 | 344 |
Markdown | 1 | 58 | 0 | 281 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 2.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 4 | 50.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 50.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/feed-icon-28x28.png | 1.70KB | 1.52KB | ▼ 10.65% |
img/feed-icon-14x14.png | 0.67KB | 0.70KB | 0.00% |