84% wppa-extra-feeds

Code Review | Wppa+ extra Feeds

WordPress plugin Wppa+ extra Feeds scored 84% from 54 tests.

About plugin

  • Plugin page: wppa-extra-feeds
  • Plugin version: 0.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-3.5.1
  • WordPress version: 6.3.1
  • First release: Jun 4, 2013
  • Latest release: Jun 5, 2013
  • Number of updates: 7
  • Update frequency: every 0.1 days
  • Top authors: Odyno (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,076 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0033.97 ▼4.40
Dashboard /wp-admin3.31 ▲0.0044.81 ▲0.54
Posts /wp-admin/edit.php3.36 ▲0.0046.48 ▲0.31
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.60 ▼8.30
Media Library /wp-admin/upload.php3.23 ▲0.0033.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▼1113.21 ▲0.031.70 ▼0.1440.10 ▼6.38
Dashboard /wp-admin2,206 ▼05.83 ▼0.05102.34 ▲9.0637.54 ▼4.92
Posts /wp-admin/edit.php2,092 ▲32.02 ▲0.0239.21 ▲4.6036.87 ▲3.35
Add New Post /wp-admin/post-new.php1,520 ▼1323.35 ▲0.41689.11 ▲88.2054.20 ▲9.72
Media Library /wp-admin/upload.php1,388 ▼34.23 ▲0.0596.38 ▼7.3543.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP9126109344
Markdown1580281

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 code0.16
Average class complexity2.50
▷ Minimum class complexity1.00
▷ Maximum class complexity4.00
Average method complexity1.38
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods8
▷ Static methods112.50%
▷ Public methods450.00%
▷ Protected methods00.00%
▷ Private methods450.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
img/feed-icon-28x28.png1.70KB1.52KB▼ 10.65%
img/feed-icon-14x14.png0.67KB0.70KB0.00%