90% wplms-coauthors-plus

Code Review | WPLMS CoAuthors Plus

WordPress plugin WPLMS CoAuthors Plus scored90%from 54 tests.

About plugin

  • Plugin page: wplms-coauthors-plus
  • Plugin version: 4.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-5.5.1
  • WordPress version: 6.3.1
  • First release: Sep 25, 2015
  • Latest release: Oct 14, 2020
  • Number of updates: 7
  • Update frequency: every 264.1 days
  • Top authors: wpthemes (85.71%)VibeThemes (28.57%)

Code review

54 tests

User reviews

1 review

Install metrics

3,000+ active /76,605 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼10.17ms] Passed 4 tests

A check of server-side resources used by WPLMS CoAuthors Plus
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0244.54 ▲2.52
Dashboard /wp-admin3.32 ▼0.0250.00 ▼19.00
Posts /wp-admin/edit.php3.37 ▲0.0251.72 ▼1.95
Add New Post /wp-admin/post-new.php5.90 ▲0.0286.52 ▼18.52
Media Library /wp-admin/upload.php3.25 ▲0.0238.35 ▼1.22

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for WPLMS CoAuthors Plus
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.72 ▲0.371.74 ▲0.1842.23 ▼3.33
Dashboard /wp-admin2,195 ▲215.61 ▲0.0785.95 ▼12.1444.05 ▲1.99
Posts /wp-admin/edit.php2,100 ▼31.97 ▼0.0437.31 ▼7.0237.65 ▲1.81
Add New Post /wp-admin/post-new.php1,529 ▲323.22 ▲0.38695.27 ▲36.6952.50 ▼12.23
Media Library /wp-admin/upload.php1,400 ▼34.23 ▲0.04103.96 ▲1.3243.66 ▼4.92

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 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
4 plugin tags: lms, coauthors plus, courses, learning management

wplms-coauthors-plus/wplms-coauthor-plus.php 92% from 13 tests

"WPLMS CoAuthors Plus" version 4.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("wplms-coauthors-plus.php" instead of "wplms-coauthor-plus.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected99 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1221699

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity21.00
▷ Minimum class complexity21.00
▷ Maximum class complexity21.00
Average method complexity3.86
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin