89% posttypearchivemeta

Code Review | PostTypeArchiveMeta

WordPress plugin PostTypeArchiveMeta scored89%from 54 tests.

About plugin

  • Plugin page: posttypearchivemeta
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.2.4
  • WordPress version: 6.3.1
  • First release: Aug 15, 2015
  • Latest release: Aug 15, 2015
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: tajima_taso (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /493 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

Server-side resources used by PostTypeArchiveMeta
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.58 ▼1.46
Dashboard /wp-admin3.31 ▲0.0151.42 ▼1.17
Posts /wp-admin/edit.php3.43 ▲0.0747.72 ▼5.45
Add New Post /wp-admin/post-new.php5.89 ▲0.0183.28 ▼18.98
Media Library /wp-admin/upload.php3.24 ▲0.0139.07 ▲0.66

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 6 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

An overview of browser requirements for PostTypeArchiveMeta
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.69 ▼0.894.92 ▲3.1542.99 ▼3.49
Dashboard /wp-admin2,203 ▲125.88 ▲0.05101.76 ▼5.7142.45 ▲1.40
Posts /wp-admin/edit.php2,089 ▼01.97 ▼0.0235.50 ▼3.7434.18 ▼1.07
Add New Post /wp-admin/post-new.php1,514 ▼1917.54 ▼5.83632.31 ▼52.8448.88 ▼9.96
Media Library /wp-admin/upload.php1,391 ▲34.22 ▼0.0299.49 ▼11.0842.26 ▼4.22

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
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/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
1 plugin tags: post types archive

posttypearchivemeta/post_type_archive_meta.php 85% from 13 tests

"PostTypeArchiveMeta" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Text Domain: The text domain name should consist of only dashes and lowercase characters
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("posttypearchivemeta.php" instead of "post_type_archive_meta.php")

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
Everything looks great! No dangerous files found in this plugin375 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP27112297
JavaScript17039
PO File113239

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity13.00
▷ Minimum class complexity11.00
▷ Maximum class complexity15.00
Average method complexity1.96
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes150.00%
▷ Concrete classes150.00%
▷ Final classes00.00%
Methods25
▷ Static methods28.00%
▷ Public methods1144.00%
▷ Protected methods1456.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants19
▷ Global constants00.00%
▷ Class constants19100.00%
▷ Public constants19100.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