89% page-list-preview

Code Review | Page List Preview

WordPress plugin Page List Preview scored89%from 54 tests.

About plugin

  • Plugin page: page-list-preview
  • Plugin version: 2.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Nov 9, 2021
  • Latest release: Aug 23, 2023
  • Number of updates: 7
  • Update frequency: every 93.1 days
  • Top authors: mendibass (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /715 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.80ms] Passed 4 tests

Server-side resources used by Page List Preview
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.32 ▼0.01
Dashboard /wp-admin3.31 ▲0.0150.10 ▼0.19
Posts /wp-admin/edit.php3.37 ▲0.0151.82 ▼2.29
Add New Post /wp-admin/post-new.php5.89 ▲0.0189.65 ▼12.72
Media Library /wp-admin/upload.php3.24 ▲0.0140.16 ▲1.54

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Page List Preview
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.34 ▼0.251.71 ▲0.1242.98 ▲1.81
Dashboard /wp-admin2,198 ▲215.63 ▲0.0189.79 ▼38.4039.86 ▼6.99
Posts /wp-admin/edit.php2,104 ▲42.01 ▲0.0436.77 ▼12.3831.58 ▼5.17
Add New Post /wp-admin/post-new.php1,526 ▼023.07 ▲0.00689.43 ▼30.9155.31 ▼13.00
Media Library /wp-admin/upload.php1,400 ▼04.26 ▲0.08106.67 ▼5.0448.04 ▲0.28

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: pages, quick view, preview, editphp, pages list

page-list-preview/PageListPreview.php 85% from 13 tests

Analyzing the main PHP file in "Page List Preview" version 2.1.0
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("page-list-preview.php" instead of "PageListPreview.php")
  • Domain Path: The domain path folder was not found ("/languages")

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 detected127 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP3181850
CSS29048
JavaScript17029

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin