84% fast-post-lists

Code Review | Fast Post Lists

WordPress plugin Fast Post Lists scored 84% from 54 tests.

About plugin

  • Plugin page: fast-post-lists
  • Plugin version: 0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.9.3
  • WordPress version: 6.3.1
  • First release: Sep 20, 2016
  • Latest release: Apr 9, 2022
  • Number of updates: 30
  • Update frequency: every 67.6 days
  • Top authors: Arfa__ (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 2,082 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.05MB] [CPU: ▼6.69ms] Passed 4 tests

Analyzing server-side resources used by Fast Post Lists
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0637.20 ▼8.43
Dashboard /wp-admin3.36 ▲0.0547.07 ▼3.54
Posts /wp-admin/edit.php3.41 ▲0.0549.65 ▲0.84
Add New Post /wp-admin/post-new.php5.94 ▲0.0584.28 ▼15.61
Media Library /wp-admin/upload.php3.28 ▲0.0535.89 ▲1.80
Fast Post Lists /wp-admin/options-general.php?page=fubaby_fastpostlists_options_general3.2533.20

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 10 new options
New WordPress options
fu_fastpostlists_posthtml
db_upgraded
fu_fastpostlists_style
fu_fastpostlists_foothtml
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
fu_fastpostlists_headhtml
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Fast Post Lists
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲7413.31 ▼1.071.60 ▼0.5042.55 ▼8.03
Dashboard /wp-admin2,213 ▲284.90 ▲0.03107.49 ▲3.1739.53 ▼1.79
Posts /wp-admin/edit.php2,093 ▲42.05 ▲0.0435.51 ▼2.2136.21 ▲3.45
Add New Post /wp-admin/post-new.php1,540 ▲323.21 ▼0.05658.34 ▲60.8556.83 ▲5.71
Media Library /wp-admin/upload.php1,392 ▲14.17 ▼0.0392.77 ▼5.9543.07 ▼0.52
Fast Post Lists /wp-admin/options-general.php?page=fubaby_fastpostlists_options_general8382.0522.6026.75

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, 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 take a closer look at the following
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_option() in wp-content/plugins/fast-post-lists/admin.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_option() in wp-content/plugins/fast-post-lists/admin.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: contents, pages, list, posts, index

fast-post-lists/fast-post-lists.php Passed 13 tests

"Fast Post Lists" version 0.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
98 characters long description:
Creates a lists of posts, for use as an index or contents pages, based upon given search criteria.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin256 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP25853256

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.27
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 functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin