84% coopso-contributors

Code Review | Coopso Contributors

WordPress plugin Coopso Contributors scored84%from 54 tests.

About plugin

  • Plugin page: coopso-contributors
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0.1
  • WordPress version: 6.3.1
  • First release: Nov 4, 2022
  • Latest release: Nov 10, 2022
  • Number of updates: 19
  • Update frequency: every 0.4 days
  • Top authors: faiz786 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /134 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.10MB] [CPU: ▼7.91ms] Passed 4 tests

A check of server-side resources used by Coopso Contributors
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0237.71 ▲0.85
Dashboard /wp-admin3.33 ▼0.0247.55 ▼8.44
Posts /wp-admin/edit.php3.38 ▲0.0245.00 ▼0.75
Add New Post /wp-admin/post-new.php5.49 ▼0.4069.79 ▼23.31
Media Library /wp-admin/upload.php3.25 ▲0.0252.85 ▲15.49

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Coopso Contributors
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲5613.29 ▼1.091.61 ▼0.0744.49 ▲1.30
Dashboard /wp-admin2,209 ▲274.86 ▼0.9596.29 ▼7.2540.39 ▼0.31
Posts /wp-admin/edit.php2,089 ▲32.01 ▼0.0034.24 ▼0.6037.25 ▲1.06
Add New Post /wp-admin/post-new.php1,520 ▼1320.58 ▼2.60631.27 ▼60.7759.02 ▼2.55
Media Library /wp-admin/upload.php1,388 ▼34.15 ▼0.0193.49 ▼10.3141.31 ▼5.04

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

Smoke tests 75% from 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 50% from 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
Almost there! Just fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/coopso-contributors/coopso-contributors.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/coopso-contributors/templates/admin/coopso-contributors-admin-meta-box.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: multiple post authors, multiple contributors, multiple post contributors, post contributor, contributors

coopso-contributors/coopso-contributors.php 92% from 13 tests

The primary PHP file in "Coopso Contributors" version 1.0.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 609 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin188 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP45067134
CSS14032
Markdown111022

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity7.50
▷ Minimum class complexity4.00
▷ Maximum class complexity11.00
Average method complexity2.86
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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 files were detected