84% wp-favorite-plugins

Code Review | WP Favorite Plugins

WordPress plugin WP Favorite Plugins scored84%from 54 tests.

About plugin

  • Plugin page: wp-favorite-plugins
  • Plugin version: 0.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2.2-4.5.3
  • WordPress version: 6.3.1
  • First release: Jul 12, 2016
  • Latest release: Jul 12, 2016
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: aanduque (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /473 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼6.67ms] Passed 4 tests

An overview of server-side resources used by WP Favorite Plugins
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0539.62 ▼0.04
Dashboard /wp-admin3.35 ▼0.0047.07 ▼14.80
Posts /wp-admin/edit.php3.40 ▲0.0447.68 ▲0.24
Add New Post /wp-admin/post-new.php5.93 ▲0.0480.59 ▼12.08
Media Library /wp-admin/upload.php3.27 ▲0.0434.45 ▲1.85

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

WP Favorite Plugins: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.29 ▼1.101.88 ▼0.3146.27 ▼4.48
Dashboard /wp-admin2,209 ▲215.89 ▼0.01105.31 ▼8.5040.04 ▼4.44
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0139.24 ▲4.3035.43 ▼0.59
Add New Post /wp-admin/post-new.php1,542 ▲2818.41 ▲0.89637.03 ▼34.5947.88 ▼18.54
Media Library /wp-admin/upload.php1,388 ▲64.24 ▼0.01100.06 ▲0.5141.35 ▼2.50

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_theme_textdomain() in wp-content/plugins/wp-favorite-plugins/wp-favorite-plugins.php:34

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

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
No tags were detected

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

The primary PHP file in "WP Favorite Plugins" version 0.0.1 is used by WordPress to initiate all plugin functionality
116 characters long description:
Simply add a new Favorite table to your plugins page, to have easy access to all your favorite and most used plugins

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin148 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP189115140
JavaScript15108

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity31.00
▷ Minimum class complexity31.00
▷ Maximum class complexity31.00
Average method complexity3.50
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ 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

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin