94% wp-post-contributors

Code Review | WordPress Post Contributors

WordPress plugin WordPress Post Contributors scored 94% from 54 tests.

About plugin

  • Plugin page: wp-post-contributors
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.0
  • WordPress version: 5.8.1
  • First release: Jul 9, 2014
  • Latest release: Dec 3, 2014
  • Number of updates: 6
  • Update frequency: every 24.5 days
  • Top authors: kishores (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 606 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼143.12ms] Passed 4 tests

Server-side resources used by WordPress Post Contributors
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.1436.42 ▲16.34
Dashboard /wp-admin3.08 ▲0.0240.62 ▼2.80
Posts /wp-admin/edit.php3.13 ▲0.0246.46 ▲2.36
Add New Post /wp-admin/post-new.php5.45 ▲0.0294.15 ▼560.20
Media Library /wp-admin/upload.php3.02 ▲0.0130.30 ▼11.84

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by WordPress Post Contributors
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,705 ▲10915.88 ▲0.307.91 ▼1.2247.35 ▲0.17
Dashboard /wp-admin2,973 ▲395.90 ▼0.01137.86 ▼13.00119.71 ▲9.80
Posts /wp-admin/edit.php2,736 ▼32.69 ▲0.0163.57 ▼6.4589.56 ▲3.19
Add New Post /wp-admin/post-new.php1,649 ▼3418.41 ▲0.01376.90 ▼25.94110.15 ▼17.84
Media Library /wp-admin/upload.php1,751 ▼565.00 ▼0.01146.32 ▼13.21113.89 ▼13.69

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means 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
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/wp-post-contributors/wp-post-contributors.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: contributors, post

wp-post-contributors/wp-post-contributors.php 92% from 13 tests

The entry point to "WordPress Post Contributors" version 1.1 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin125 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP15587112
CSS11313

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity3.75
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.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
No PNG images were found in this plugin