74% wporg-repo-plugins

Code Review | WPORG Repo Plugins

WordPress plugin WPORG Repo Plugins scored74%from 54 tests.

About plugin

  • Plugin page: wporg-repo-plugins
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3+
  • WordPress version: 6.3.1
  • First release: Jun 3, 2012
  • Latest release: May 18, 2013
  • Number of updates: 29
  • Update frequency: every 12.0 days
  • Top authors: trepmal (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /883 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▼1.69MB] [CPU: ▼46.69ms] Passed 4 tests

Analyzing server-side resources used by WPORG Repo Plugins
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.32 ▼1.148.97 ▼26.92
Dashboard /wp-admin2.33 ▼1.0212.94 ▼45.70
Posts /wp-admin/edit.php2.33 ▼1.0311.88 ▼34.96
Add New Post /wp-admin/post-new.php2.33 ▼3.5611.11 ▼79.17
Media Library /wp-admin/upload.php2.33 ▼0.9010.69 ▼23.90

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
widget_wporg_repo_plugins
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for WPORG Repo Plugins
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.32 ▼1.041.77 ▼0.0640.93 ▼10.37
Dashboard /wp-admin2,206 ▲214.84 ▼0.05115.26 ▼1.3237.79 ▼9.81
Posts /wp-admin/edit.php2,089 ▼02.00 ▲0.0139.39 ▼2.2036.48 ▼0.36
Add New Post /wp-admin/post-new.php1,514 ▼1917.63 ▼5.52682.22 ▲61.0350.64 ▲2.02
Media Library /wp-admin/upload.php1,385 ▼04.18 ▲0.0698.11 ▼36.0645.34 ▼1.24

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Uninstall procedure validation failed for this plugin
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in WPORG_Repo_Plugins is deprecated since version 4.3.0! Use __construct() instead.
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_wporg_repo_plugins
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wporg-repo-plugins/wporg-repo-plugins.php:26

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Tested up to: Version format is invalid
You can take inspiration from this readme.txt

wporg-repo-plugins/wporg-repo-plugins.php Passed 13 tests

The main PHP script in "WPORG Repo Plugins" version 1.2 is automatically included on every request by WordPress
67 characters long description:
Widget to display plugins on the wordpress.org repository by author

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin153 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12429153

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity4.25
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.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
No PNG files were detected