10% api-info-themes-plugins-wp-org

Code Review | API info for Plugins & Themes from WP.ORG

WordPress plugin API info for Plugins & Themes from WP.ORG scored10%from 54 tests.

About plugin

  • Plugin page: api-info-themes-p...
  • Plugin version: 1.05
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4+
  • WordPress version: 6.3.1
  • First release: Jan 27, 2019
  • Latest release: Jul 30, 2022
  • Number of updates: 51
  • Update frequency: every 25.1 days
  • Top authors: ttodua (52.94%)puvoxsoftware (49.02%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /998 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Error in wp-content/plugins/api-info-themes-plugins-wp-org/library_wp.php+2677
    Uncaught Error: Class 'WP_Plugins_List_Table' not found in wp-content/plugins/api-info-themes-plugins-wp-org/library_wp.php:2677
    Stack trace:
    #0 wp-content/plugins/api-info-themes-plugins-wp-org/library_wp.php(2611): Puvox\wp_plugin->is_not_bulk_activation()
    #1 wp-includes/class-wp-hook.php(312): Puvox\wp_plugin->Puvox\{closure}()
    #2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #3 wp-includes/plugin.php(517): WP_Hook->do_action()
    #4 wp-admin/includes/plugin.php(720): do_action()

Server metrics [RAM: ▲2.23MB] [CPU: ▲10.28ms] Passed 4 tests

A check of server-side resources used by API info for Plugins & Themes from WP.ORG
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /5.74 ▲2.2754.85 ▲5.54
Dashboard /wp-admin5.57 ▲2.2664.16 ▲15.86
Posts /wp-admin/edit.php5.62 ▲2.2669.32 ▲16.82
Add New Post /wp-admin/post-new.php8.09 ▲2.20103.21 ▲2.88
Media Library /wp-admin/upload.php5.43 ▲2.2056.75 ▲21.44
API info WP.ORG items /wp-admin/options-general.php?page=api-info-themes-plugins-wp-org5.4155.08

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 6 new files
Database: 1 new table, 7 new options
New tables
wp_api_info_themes_plugins_wp_org__errors_log
New WordPress options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
api-info-themes-plugins-wp-org
theysaidso_admin_options
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

API info for Plugins & Themes from WP.ORG: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,796 ▲3514.35 ▼0.181.53 ▼0.1541.14 ▼4.55
Dashboard /wp-admin2,202 ▲285.59 ▲0.0090.26 ▼4.1840.08 ▼4.30
Posts /wp-admin/edit.php2,107 ▲41.99 ▼0.0339.92 ▼0.4736.48 ▼1.78
Add New Post /wp-admin/post-new.php1,532 ▲422.93 ▼0.06668.02 ▲50.3961.10 ▲15.16
Media Library /wp-admin/upload.php1,407 ▲44.19 ▼0.0898.28 ▼2.9043.25 ▼4.26
API info WP.ORG items /wp-admin/options-general.php?page=api-info-themes-plugins-wp-org9792.1230.9056.35

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_api_info_themes_plugins_wp_org__errors_log
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • api-info-themes-plugins-wp-org
    • widget_recent-posts
    • 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
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'Puvox\\library' not found in wp-content/plugins/api-info-themes-plugins-wp-org/library_wp.php:25

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Contributors: Plugin contributors not specified
The official readme.txt is a good inspiration

api-info-themes-plugins-wp-org/index.php 92% from 13 tests

The main PHP file in "API info for Plugins & Themes from WP.ORG" ver. 1.05 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("api-info-themes-plugins-wp-org.php" instead of "index.php")

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin3,773 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP31,2935,1083,773

PHP code 50% from 2 tests

A short review of cyclomatic complexity and code structure
Please fix the following
  • Please reduce cyclomatic complexity of classes to less than 1000 (currently 1,076)
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity349.80
▷ Minimum class complexity21.00
▷ Maximum class complexity1,076.00
Average method complexity2.98
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods853
▷ Static methods10211.96%
▷ Public methods84699.18%
▷ Protected methods00.00%
▷ Private methods70.82%
Functions90
▷ Named functions11.11%
▷ Anonymous functions8998.89%
Constants3
▷ Global constants3100.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
No PNG images were found in this plugin