84% crowdmentions

Code Review | Crowdmentions

WordPress plugin Crowdmentions scored 84% from 54 tests.

About plugin

  • Plugin page: crowdmentions
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.5.0
  • WordPress version: 6.3.1
  • First release: Oct 23, 2015
  • Latest release: Mar 7, 2016
  • Number of updates: 11
  • Update frequency: every 12.6 days
  • Top authors: henry.wright (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

10+ active / 1,709 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.01MB] [CPU: ▼8.62ms] Passed 4 tests

Analyzing server-side resources used by Crowdmentions
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.08 ▼4.07
Dashboard /wp-admin3.31 ▲0.0146.67 ▼3.10
Posts /wp-admin/edit.php3.36 ▲0.0148.05 ▼1.88
Add New Post /wp-admin/post-new.php5.89 ▲0.0182.46 ▼25.41
Media Library /wp-admin/upload.php3.23 ▲0.0035.51 ▲1.16

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Crowdmentions
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.23 ▼1.141.67 ▲0.0939.81 ▼11.47
Dashboard /wp-admin2,209 ▲185.86 ▼0.1894.48 ▼10.0237.89 ▼1.42
Posts /wp-admin/edit.php2,089 ▼02.06 ▲0.0140.78 ▲4.6536.08 ▲0.29
Add New Post /wp-admin/post-new.php1,519 ▼423.28 ▲0.07780.38 ▲97.8070.16 ▲18.69
Media Library /wp-admin/upload.php1,391 ▲34.25 ▲0.0799.27 ▼2.3942.13 ▼3.79

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

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 no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/crowdmentions/inc/filters.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/crowdmentions/crowdmentions.php:39
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/crowdmentions/inc/actions.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
2 plugin tags: mentions, buddypress

crowdmentions/crowdmentions.php Passed 13 tests

The main PHP file in "Crowdmentions" ver. 1.0.3 adds more information about the plugin and also serves as the entry point for this plugin
73 characters long description:
Use a command to mention a collection of members on your BuddyPress site.

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
Everything looks great! No dangerous files found in this plugin379 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP4108188379

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions17
▷ Named functions17100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin