84% add-contributors

Code Review | Add Contributors

WordPress plugin Add Contributors scored84%from 54 tests.

About plugin

  • Plugin page: add-contributors
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.3
  • WordPress version: 6.3.1
  • First release: Aug 22, 2019
  • Latest release: Nov 24, 2019
  • Number of updates: 19
  • Update frequency: every 15.5 days
  • Top authors: benjibabs (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /864 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
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼8.36ms] Passed 4 tests

A check of server-side resources used by Add Contributors
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0540.88 ▼3.75
Dashboard /wp-admin3.35 ▲0.0049.20 ▼14.27
Posts /wp-admin/edit.php3.40 ▲0.0447.51 ▼0.34
Add New Post /wp-admin/post-new.php5.94 ▲0.0582.52 ▼15.09
Media Library /wp-admin/upload.php3.27 ▲0.0435.96 ▲0.24

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Add Contributors
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲2014.59 ▼0.032.06 ▲0.2345.30 ▲6.41
Dashboard /wp-admin2,195 ▲215.63 ▲0.0596.09 ▲10.7941.36 ▲1.59
Posts /wp-admin/edit.php2,100 ▲32.01 ▲0.0234.88 ▼5.0735.89 ▼3.99
Add New Post /wp-admin/post-new.php6,226 ▲4,69825.81 ▲2.84937.48 ▲268.7364.88 ▲12.19
Media Library /wp-admin/upload.php1,400 ▲34.21 ▼0.0396.31 ▼6.6846.35 ▼0.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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, 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 take a closer look at 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 register_activation_hook() in wp-content/plugins/add-contributors/ict101s-contributors.php:51

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: list, contributors, authors, helpers, collaboration

add-contributors/ict101s-contributors.php 85% from 13 tests

The primary PHP file in "Add Contributors" version 1.0.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: The principal plugin file should be the same as the plugin slug ("add-contributors.php" instead of "ict101s-contributors.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin235 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP745216186
PO File16825
CSS16024

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity7.20
▷ Minimum class complexity1.00
▷ Maximum class complexity29.00
Average method complexity3.38
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes5
▷ Abstract classes5100.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods13
▷ Static methods13100.00%
▷ Public methods969.23%
▷ Protected methods00.00%
▷ Private methods430.77%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
4 PNG files occupy 0.30MB with 0.17MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-128x128.png29.68KB6.55KB▼ 77.95%
assets/screenshot-1.png33.49KB17.06KB▼ 49.06%
assets/banner-772x250.png185.54KB85.58KB▼ 53.88%
assets/screenshot-2.png54.40KB24.33KB▼ 55.28%