84% post-type-archive-descriptions

Code Review | Post Type Archive Descriptions

WordPress plugin Post Type Archive Descriptions scored84%from 54 tests.

About plugin

  • Plugin page: post-type-archive...
  • Plugin version: 1.5.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.3
  • WordPress version: 6.3.1
  • First release: May 22, 2015
  • Latest release: Oct 20, 2023
  • Number of updates: 26
  • Update frequency: every 118.4 days
  • Top authors: mrwweb (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

1,000+ active /51,906 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼6.17ms] Passed 4 tests

This is a short check of server-side resources used by Post Type Archive Descriptions
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0646.75 ▲8.21
Dashboard /wp-admin3.36 ▲0.0541.84 ▼6.29
Posts /wp-admin/edit.php3.47 ▲0.1147.65 ▼1.39
Add New Post /wp-admin/post-new.php5.94 ▲0.0575.97 ▼16.70
Media Library /wp-admin/upload.php3.28 ▲0.0531.58 ▼0.30

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Post Type Archive Descriptions
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.34 ▼0.011.60 ▲0.1036.89 ▼0.23
Dashboard /wp-admin2,195 ▲215.63 ▲0.1293.70 ▲8.8742.96 ▲0.79
Posts /wp-admin/edit.php2,100 ▲31.97 ▼0.0240.17 ▼0.5933.85 ▼5.78
Add New Post /wp-admin/post-new.php1,526 ▼023.82 ▲0.83670.65 ▼14.7261.84 ▼17.07
Media Library /wp-admin/upload.php1,397 ▼64.24 ▲0.0292.29 ▼8.6041.07 ▼3.82

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
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 6× 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/post-type-archive-descriptions/inc/settings.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/post-type-archive-descriptions/compat/wordpress-core.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/post-type-archive-descriptions/inc/admin-bar.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/post-type-archive-descriptions/compat/the-events-calendar.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/post-type-archive-descriptions/inc/settings.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/post-type-archive-descriptions/compat/qtranslate-x.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: custom post type, post type archive, custom post types, archives, custom post type archive

post-type-archive-descriptions/post-type-archive-descriptions.php Passed 13 tests

The main PHP script in "Post Type Archive Descriptions" version 1.5.0 is automatically included on every request by WordPress
100 characters long description:
Enables an editable description for a post type to display at the top of the post type archive page.

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
No dangerous file extensions were detected277 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP8118207270
XML1017

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.24
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%
Functions21
▷ Named functions21100.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
There are no PNG files in this plugin