84% page-list-widget

Code Review | Page List Widget

WordPress plugin Page List Widget scored84%from 54 tests.

About plugin

  • Plugin page: page-list-widget
  • Plugin version: 1.4.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.4.2
  • WordPress version: 6.3.1
  • First release: Jun 25, 2013
  • Latest release: Jul 15, 2020
  • Number of updates: 26
  • Update frequency: every 99.2 days
  • Top authors: nigauri (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

700+ active /11,566 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

An overview of server-side resources used by Page List Widget
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0739.38 ▼0.09
Dashboard /wp-admin3.38 ▲0.0751.51 ▲0.75
Posts /wp-admin/edit.php3.43 ▲0.0756.31 ▲4.34
Add New Post /wp-admin/post-new.php5.96 ▲0.0795.75 ▼11.54
Media Library /wp-admin/upload.php3.30 ▲0.0736.22 ▲2.32

Server storage [IO: ▲0.05MB] [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: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_pagelistwidget
widget_recent-posts
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Page List Widget
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.35 ▼0.181.80 ▼0.3146.82 ▲5.73
Dashboard /wp-admin2,198 ▲215.65 ▼0.0291.58 ▼1.4237.91 ▼3.62
Posts /wp-admin/edit.php2,103 ▼02.03 ▲0.0440.90 ▲4.7538.49 ▲0.54
Add New Post /wp-admin/post-new.php1,526 ▼122.88 ▼0.11652.20 ▼20.9053.30 ▼0.64
Media Library /wp-admin/upload.php1,403 ▼04.17 ▲0.0399.67 ▼10.9342.94 ▼6.64

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_pagelistwidget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for 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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/page-list-widget/page-list-widget.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Donate link: Invalid url: ""
  • Screenshots: Screenshot #1 (The widget options screen.) image required
The official readme.txt might help

page-list-widget/page-list-widget.php Passed 13 tests

The main PHP file in "Page List Widget" ver. 1.4.0 adds more information about the plugin and also serves as the entry point for this plugin
72 characters long description:
This is a widget plugin. This widget will display a list of posts/pages.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected347 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP15227264
PO File1353783

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.21
Average class complexity38.00
▷ Minimum class complexity38.00
▷ Maximum class complexity38.00
Average method complexity10.25
▷ Minimum method complexity1.00
▷ Maximum method complexity23.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%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png22.38KB8.86KB▼ 60.40%