84% indieweb-post-kinds

Code Review | Post Kinds

WordPress plugin Post Kinds scored84%from 54 tests.

About plugin

  • Plugin page: indieweb-post-kinds
  • Plugin version: 3.7.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.9-6.4
  • WordPress version: 6.3.1
  • First release: Feb 10, 2015
  • Latest release: Nov 24, 2023
  • Number of updates: 176
  • Update frequency: every 18.2 days
  • Top authors: dshanske (99.43%)Otto42 (1.14%)

Code review

54 tests

User reviews

6 reviews

Install metrics

200+ active /27,700 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.97MB] [CPU: ▲5.80ms] Passed 4 tests

Server-side resources used by Post Kinds
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.45 ▲0.9844.99 ▲3.82
Dashboard /wp-admin4.26 ▲0.9657.06 ▲6.04
Posts /wp-admin/edit.php4.33 ▲0.9757.36 ▲8.17
Add New Post /wp-admin/post-new.php7.16 ▲1.27105.35 ▲5.18
Media Library /wp-admin/upload.php4.18 ▲0.9642.50 ▲9.79
Kinds /wp-admin/edit-tags.php?taxonomy=kind4.1940.89
Post Kinds /wp-admin/options-general.php?page=kind_options4.21222.15
Parse This /wp-admin/tools.php?page=parse_this4.1539.41

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 144 new files
Database: no new tables, 9 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_kind_post_widget
default_term_kind
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_kind_menu_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Post Kinds
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲3114.72 ▼0.011.80 ▼0.0537.31 ▼2.31
Dashboard /wp-admin2,221 ▲415.60 ▼0.1096.22 ▲0.4042.85 ▼2.07
Posts /wp-admin/edit.php2,146 ▲432.12 ▲0.1740.74 ▲0.6236.60 ▼0.34
Add New Post /wp-admin/post-new.php1,554 ▲2823.39 ▲0.31668.81 ▲71.0954.89 ▼5.27
Media Library /wp-admin/upload.php1,420 ▲204.14 ▼0.0395.42 ▼1.8943.23 ▼0.27
Kinds /wp-admin/edit-tags.php?taxonomy=kind1,3722.2530.1835.64
Post Kinds /wp-admin/options-general.php?page=kind_options1,1421.9725.9931.18
Parse This /wp-admin/tools.php?page=parse_this9542.1625.4027.00

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 9 options
    • widget_kind_post_widget
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_kind_menu_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • default_term_kind

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Please fix the following
  • 51× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function feed_content_type() in wp-content/plugins/indieweb-post-kinds/templates/feed-atom.php:8
    • > PHP Notice
      Undefined variable: cite in wp-content/plugins/indieweb-post-kinds/views/kind-eat.php on line 7
    • > PHP Fatal error
      Uncaught Error: Class 'Kind_Taxonomy' not found in wp-content/plugins/indieweb-post-kinds/views/kind-photo.php:23
    • > PHP Notice
      Undefined variable: cite in wp-content/plugins/indieweb-post-kinds/views/kind-jam.php on line 7
    • > PHP Notice
      Undefined variable: cite in wp-content/plugins/indieweb-post-kinds/views/kind-issue.php on line 7
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_video() on null in wp-content/plugins/indieweb-post-kinds/views/kind-video.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Parse_This_Base' not found in wp-content/plugins/indieweb-post-kinds/lib/parse-this/includes/class-parse-this-twitter.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/indieweb-post-kinds/templates/reply-details.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Masterminds\\HTML5\\Parser\\StringInputStream' not found in wp-content/plugins/indieweb-post-kinds/lib/parse-this/lib/html5/HTML5/Parser/FileInputStream.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'Parse_This_MF2_Utils' not found in wp-content/plugins/indieweb-post-kinds/lib/parse-this/includes/class-parse-this-mf2.php:9

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: scrobble, share, webmention, posts, like...

indieweb-post-kinds/indieweb-post-kinds.php Passed 13 tests

This is the main PHP file of "Post Kinds" version 3.7.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
129 characters long description:
Ever want to reply to someone else's post with a post on your own site? Or to "like" someone else's post, but with your own site?

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
Good job! No executable or dangerous file extensions detected30,265 lines of code in 135 files:
LanguageFilesBlank linesComment linesLines of code
PHP882,0455,30419,206
JSON10010,412
JavaScript33817387
Markdown3640150
CSS38368
SVG370142

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity45.47
▷ Minimum class complexity1.00
▷ Maximum class complexity309.00
Average method complexity4.94
▷ Minimum method complexity1.00
▷ Maximum method complexity72.00
Code structure
Namespaces5
Interfaces4
Traits0
Classes47
▷ Abstract classes00.00%
▷ Concrete classes47100.00%
▷ Final classes24.26%
Methods595
▷ Static methods32053.78%
▷ Public methods49883.70%
▷ Protected methods589.75%
▷ Private methods396.55%
Functions93
▷ Named functions8389.25%
▷ Anonymous functions1010.75%
Constants61
▷ Global constants11.64%
▷ Class constants6098.36%
▷ Public constants60100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin