84% plugins-list

Code Review | Plugins List

WordPress plugin Plugins List scored84%from 54 tests.

About plugin

  • Plugin page: plugins-list
  • Plugin version: 2.6
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.3
  • WordPress version: 6.3.1
  • First release: Jul 21, 2008
  • Latest release: Aug 13, 2023
  • Number of updates: 283
  • Update frequency: every 19.7 days
  • Top authors: dartiss (89.4%)codedart (6.36%)nutsmuggler (4.95%)

Code review

54 tests

User reviews

12 reviews

Install metrics

1,000+ active /22,749 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.07MB] [CPU: ▼6.12ms] Passed 4 tests

Analyzing server-side resources used by Plugins List
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0735.76 ▼6.50
Dashboard /wp-admin3.37 ▲0.0746.36 ▼6.23
Posts /wp-admin/edit.php3.42 ▲0.0746.10 ▼1.75
Add New Post /wp-admin/post-new.php5.95 ▲0.0791.17 ▼10.01
Media Library /wp-admin/upload.php3.30 ▲0.0734.88 ▼0.84

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Plugins List
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2914.51 ▲0.131.76 ▼0.1841.70 ▼1.01
Dashboard /wp-admin2,206 ▲245.91 ▼0.02106.57 ▲1.0241.32 ▼2.24
Posts /wp-admin/edit.php2,089 ▼01.97 ▼0.0939.68 ▲3.8534.27 ▼2.74
Add New Post /wp-admin/post-new.php1,533 ▲1423.32 ▲0.14600.83 ▼68.5054.61 ▲4.31
Media Library /wp-admin/upload.php1,391 ▲64.15 ▼0.0696.98 ▼13.6544.42 ▼3.35

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
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts

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)
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
Almost there! Just fix the following items
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/plugins-list/plugins-list.php on line 32
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/plugins-list/plugins-list.php on line 32
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/plugins-list/plugins-list.php on line 32

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)
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: plugin, show, display, installed, list

plugins-list/plugins-list.php Passed 13 tests

Analyzing the main PHP file in "Plugins List" version 2.6
91 characters long description:
🔌 Allows you to insert a list of the WordPress plugins you are using into any post/page.

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
Good job! No executable or dangerous file extensions detected436 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP294183436

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions1090.91%
▷ Anonymous functions19.09%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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