84% independent-favorite-plugins

Code Review | Independent Favorite Plugins

WordPress plugin Independent Favorite Plugins scored84%from 54 tests.

About plugin

  • Plugin page: independent-favor...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.5
  • WordPress version: 6.3.1
  • First release: Apr 27, 2016
  • Latest release: May 5, 2016
  • Number of updates: 12
  • Update frequency: every 1.1 days
  • Top authors: Irina_Yurievna (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /599 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.16MB] [CPU: ▼3.32ms] Passed 4 tests

An overview of server-side resources used by Independent Favorite Plugins
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.82 ▼2.92
Dashboard /wp-admin3.57 ▲0.2252.41 ▼8.22
Posts /wp-admin/edit.php3.62 ▲0.2650.19 ▼0.86
Add New Post /wp-admin/post-new.php6.09 ▲0.2086.33 ▼1.29
Media Library /wp-admin/upload.php3.43 ▲0.2036.63 ▲3.46
Favorite Plugins Settings /wp-admin/options-general.php?page=i-favorite-plugins-config3.4335.90
Export favorite plugins /wp-admin/tools.php?page=i-export-favorite-plugins3.4030.15

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 20 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
can_compress_scripts
theysaidso_admin_options
i_fv_admin_options_name
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Independent Favorite Plugins
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲7314.48 ▲0.121.78 ▼0.1840.82 ▼8.00
Dashboard /wp-admin2,214 ▲265.86 ▲1.01107.86 ▼13.1840.66 ▼1.40
Posts /wp-admin/edit.php2,100 ▲112.05 ▲0.0439.59 ▲1.9835.83 ▲3.13
Add New Post /wp-admin/post-new.php1,525 ▲523.22 ▲0.24631.16 ▼41.7552.43 ▼5.36
Media Library /wp-admin/upload.php1,387 ▼14.20 ▼0.0397.35 ▼6.5241.13 ▼4.71
Favorite Plugins Settings /wp-admin/options-general.php?page=i-favorite-plugins-config1,1123.1739.2864.49
Export favorite plugins /wp-admin/tools.php?page=i-export-favorite-plugins8102.0924.1425.25

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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
Please fix the following
  • 6× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Trait 'i_fv_Singleton' not found in wp-content/plugins/independent-favorite-plugins/includes/class.i-favorite-plugins-page.php on line 7
    • > PHP Fatal error
      Trait 'i_fv_Singleton' not found in wp-content/plugins/independent-favorite-plugins/includes/class.i-favorite-plugins-log.php on line 3
    • > PHP Fatal error
      Trait 'i_fv_Singleton' not found in wp-content/plugins/independent-favorite-plugins/includes/class.independent-favorite-plugins.php on line 4
    • > PHP Fatal error
      Trait 'i_fv_Singleton' not found in wp-content/plugins/independent-favorite-plugins/includes/class.i-favorite-plugins-admin.php on line 5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/independent-favorite-plugins/independent-favorite-plugins.php:29
    • > PHP Fatal error
      Trait 'i_fv_Singleton' not found in wp-content/plugins/independent-favorite-plugins/class.i-favorite-plugins-settings.php on line 4

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

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: favorite plugins, like plugin, independent, autonomous, plugin to favorites...

independent-favorite-plugins/independent-favorite-plugins.php Passed 13 tests

The main file in "Independent Favorite Plugins" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
102 characters long description:
Add plugins to favorite. Can work with plugins which aren't present on wordpress.org or other websites

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected1,058 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP9137311900
PO File13847104
JavaScript23545
CSS1109

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity15.29
▷ Minimum class complexity2.00
▷ Maximum class complexity54.00
Average method complexity2.96
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits1
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods51
▷ Static methods23.92%
▷ Public methods3772.55%
▷ Protected methods1427.45%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/stars.png0.90KB1.07KB0.00%
images/stars-2x.png1.23KB1.54KB0.00%