79% wpfavs

Code Review | Wp Favs - Plugin Manager

WordPress plugin Wp Favs - Plugin Manager scored79%from 54 tests.

About plugin

  • Plugin page: wpfavs
  • Plugin version: 1.2.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-6.3.0
  • WordPress version: 6.3.1
  • First release: Jun 6, 2014
  • Latest release: Sep 23, 2023
  • Number of updates: 51
  • Update frequency: every 66.6 days
  • Top authors: navarroido (62.75%)timersys (39.22%)

Code review

54 tests

User reviews

32 reviews

Install metrics

7,000+ active /73,661 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.36MB] [CPU: ▼6.18ms] Passed 4 tests

A check of server-side resources used by Wp Favs - Plugin Manager
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.18 ▼7.31
Dashboard /wp-admin3.83 ▲0.5351.61 ▼4.24
Posts /wp-admin/edit.php3.88 ▲0.5354.83 ▲1.87
Add New Post /wp-admin/post-new.php6.35 ▲0.4689.23 ▼15.04
Media Library /wp-admin/upload.php3.69 ▲0.4643.41 ▲3.59
Wp Favs /wp-admin/tools.php?page=wpfavs3.6737.26

Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Wp Favs - Plugin Manager
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.38 ▼0.351.80 ▼0.1740.51 ▼4.77
Dashboard /wp-admin2,202 ▲255.59 ▼0.0284.11 ▼15.7338.16 ▼5.62
Posts /wp-admin/edit.php2,104 ▲72.01 ▲0.0334.86 ▼3.4830.35 ▼10.72
Add New Post /wp-admin/post-new.php1,530 ▼723.23 ▲4.88656.65 ▲4.0358.36 ▼7.61
Media Library /wp-admin/upload.php1,404 ▲44.15 ▼0.0695.39 ▼11.7141.18 ▼7.52
Wp Favs /wp-admin/tools.php?page=wpfavs9552.0427.7930.83

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/wpfavs/admin/views/footer.php
  • 6× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/wpfavs/admin/includes/class-plugins-table.php on line 7
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wpfavs/admin/includes/class-plugins-table.php on line 7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/wpfavs/admin/views/header.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/wpfavs/admin/views/main.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function did_action() in wp-content/plugins/wpfavs/admin/includes/class-tgm-plugin-activation.php:2187
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/wpfavs/admin/includes/class-plugins-table.php on line 7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
10 plugin tags: wp core, plugin manager, multi plugin installer, multiple plugins, favorite plugins...

wpfavs/wpfavs.php Passed 13 tests

This is the main PHP file of "Wp Favs - Plugin Manager" version 1.2.1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
62 characters long description:
Create and import your favorites plugins lists from wpfavs.com

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin2,546 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP87732,0202,473
CSS12144
JavaScript18229

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity51.67
▷ Minimum class complexity1.00
▷ Maximum class complexity217.00
Average method complexity4.35
▷ Minimum method complexity1.00
▷ Maximum method complexity54.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods134
▷ Static methods85.97%
▷ Public methods10477.61%
▷ Protected methods2619.40%
▷ Private methods42.99%
Functions5
▷ Named functions360.00%
▷ Anonymous functions240.00%
Constants5
▷ Global constants120.00%
▷ Class constants480.00%
▷ Public constants4100.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