84% post-contributor

Code Review | Post Contributor

WordPress plugin Post Contributor scored84%from 54 tests.

About plugin

  • Plugin page: post-contributor
  • Plugin version: 1.1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.1.1
  • WordPress version: 6.3.1
  • First release: Jan 1, 2016
  • Latest release: Nov 29, 2019
  • Number of updates: 33
  • Update frequency: every 43.3 days
  • Top authors: thrijith (84.85%)abhijitrakas (18.18%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,276 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

An overview of server-side resources used by Post Contributor
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.24 ▼4.06
Dashboard /wp-admin3.37 ▲0.0644.27 ▼12.84
Posts /wp-admin/edit.php3.48 ▲0.1251.01 ▲6.72
Add New Post /wp-admin/post-new.php5.95 ▲0.0683.11 ▼15.04
Media Library /wp-admin/upload.php3.29 ▲0.0632.23 ▼1.60
Post Contributor /wp-admin/options-general.php?page=post-contributor3.2529.55

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Post Contributor
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲6113.28 ▼1.091.66 ▲0.0342.08 ▼3.77
Dashboard /wp-admin2,210 ▲225.77 ▼0.1299.54 ▼6.7139.33 ▼4.78
Posts /wp-admin/edit.php2,096 ▲72.02 ▼0.0139.43 ▲2.7535.23 ▼0.01
Add New Post /wp-admin/post-new.php1,539 ▲2523.16 ▲5.67661.74 ▲67.7962.08 ▲7.39
Media Library /wp-admin/upload.php1,395 ▲74.23 ▲0.0594.55 ▼0.9341.67 ▼1.66
Post Contributor /wp-admin/options-general.php?page=post-contributor8082.1924.2124.04

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 5× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/post-contributor/classes/FetchClass.php
    • > /wp-content/plugins/post-contributor/index.php
    • > /wp-content/plugins/post-contributor/post-contributor.php
    • > /wp-content/plugins/post-contributor/classes/PostClass.php
    • > /wp-content/plugins/post-contributor/classes/OptionClass.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 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
These attributes need your attention:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === post-contributor === )
The official readme.txt is a good inspiration

post-contributor/post-contributor.php Passed 13 tests

"Post Contributor" version 1.1.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
64 characters long description:
Very handy plugin to show author contribution in particular post

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 plugin332 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP564112308
JSON10022
CSS1002

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity11.25
▷ Minimum class complexity1.00
▷ Maximum class complexity32.00
Average method complexity3.41
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods17
▷ Static methods00.00%
▷ Public methods17100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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
There were not PNG files found in your plugin