84% all-post-type-lists

Code Review | All Post Type Lists

WordPress plugin All Post Type Lists scored84%from 54 tests.

About plugin

  • Plugin page: all-post-type-lists
  • Plugin version: 0.1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.1.1
  • WordPress version: 6.3.1
  • First release: Apr 11, 2023
  • Latest release: Apr 11, 2023
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: theanamhossain (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /110 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

Server-side resources used by All Post Type Lists
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.12 ▲0.87
Dashboard /wp-admin3.31 ▼0.0350.29 ▼10.89
Posts /wp-admin/edit.php3.36 ▲0.0044.60 ▼4.47
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.05 ▼25.56
Media Library /wp-admin/upload.php3.23 ▲0.0036.94 ▲5.29
All Posts Types /wp-admin/options-general.php?page=all_post_types3.2035.39

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for All Post Type Lists
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8314.48 ▲0.242.07 ▲0.5143.49 ▲5.02
Dashboard /wp-admin2,213 ▲244.86 ▼0.1096.68 ▼13.3039.09 ▼2.63
Posts /wp-admin/edit.php2,093 ▲42.04 ▼0.0136.91 ▼4.6235.03 ▼0.21
Add New Post /wp-admin/post-new.php1,545 ▲1118.36 ▼4.71631.60 ▲46.0750.39 ▲2.02
Media Library /wp-admin/upload.php1,386 ▲14.18 ▼0.1097.83 ▲1.7542.21 ▼0.66
All Posts Types /wp-admin/options-general.php?page=all_post_types1,0672.0622.9930.96

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • 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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 2× 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/all-post-type-lists/all-post-type-lists.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/all-post-type-lists/inc/post-type-lists.php:12

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 96% from 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
2 plugin tags: comments, spam

all-post-type-lists/all-post-type-lists.php 92% from 13 tests

The main PHP script in "All Post Type Lists" version 0.1.0 is automatically included on every request by WordPress
It is important to fix the following:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected84 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP223384

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity2.67
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.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 images were found in this plugin