90% post-type-archive-pages

Code Review | Post Type Archive Pages

WordPress plugin Post Type Archive Pages scored90%from 54 tests.

About plugin

  • Plugin page: post-type-archive...
  • Plugin version: 1.0.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.3
  • WordPress version: 6.3.1
  • First release: Dec 1, 2019
  • Latest release: Jan 30, 2020
  • Number of updates: 6
  • Update frequency: every 10.7 days
  • Top authors: darrengrant (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /3,434 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.02MB] [CPU: ▼0.34ms] Passed 4 tests

This is a short check of server-side resources used by Post Type Archive Pages
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.75 ▼1.91
Dashboard /wp-admin3.33 ▲0.0347.51 ▲0.47
Posts /wp-admin/edit.php3.38 ▲0.0347.48 ▼3.50
Add New Post /wp-admin/post-new.php5.91 ▲0.0292.51 ▲6.32
Media Library /wp-admin/upload.php3.25 ▲0.0236.96 ▲3.60

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Post Type Archive Pages
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.25 ▼1.501.99 ▲0.1740.15 ▼3.17
Dashboard /wp-admin2,203 ▲155.80 ▼0.06102.26 ▲3.1840.39 ▼2.08
Posts /wp-admin/edit.php2,089 ▼31.99 ▼0.0538.88 ▼3.7333.97 ▼2.95
Add New Post /wp-admin/post-new.php1,520 ▼1023.08 ▲4.57619.40 ▼21.2757.63 ▲8.69
Media Library /wp-admin/upload.php1,385 ▼04.22 ▲0.04102.63 ▲0.0942.44 ▼6.40

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 does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests Passed 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 Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
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
2 plugin tags: post-types, archive-pages

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

The main PHP file in "Post Type Archive Pages" ver. 1.0.4 adds more information about the plugin and also serves as the entry point for this plugin
81 characters long description:
Set the archive for your custom post types to a page within your pages structure.

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
Success! There were no dangerous files found in this plugin357 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP723610357

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity9.71
▷ Minimum class complexity1.00
▷ Maximum class complexity15.00
Average method complexity2.91
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods32
▷ Static methods13.12%
▷ Public methods3196.88%
▷ Protected methods00.00%
▷ Private methods13.12%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin