84% writeshare

Code Review | WriteShare Writing Community Platform

WordPress plugin WriteShare Writing Community Platform scored84%from 54 tests.

About plugin

  • Plugin page: writeshare
  • Plugin version: 1.1.18
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.0.1
  • WordPress version: 6.3.1
  • First release: Feb 23, 2016
  • Latest release: Dec 31, 2018
  • Number of updates: 29
  • Update frequency: every 36.1 days
  • Top authors: FandomEnt (100%)

Code review

54 tests

User reviews

17 reviews

Install metrics

100+ active /16,716 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

This is a short check of server-side resources used by WriteShare Writing Community Platform
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.74 ▲0.2841.45 ▲3.36
Dashboard /wp-admin3.56 ▲0.2653.10 ▲3.48
Posts /wp-admin/edit.php3.67 ▲0.3253.51 ▼3.71
Add New Post /wp-admin/post-new.php6.14 ▲0.2593.59 ▼1.17
Media Library /wp-admin/upload.php3.48 ▲0.2537.53 ▲1.41
WriteShare /wp-admin/admin.php?page=writeshare3.4533.99
Content /wp-admin/edit.php?post_type=wpws_content3.5349.29
Add New /wp-admin/post-new.php?post_type=wpws_content3.6849.23
Settings /wp-admin/admin.php?page=writeshare-settings3.5043.60

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

WriteShare Writing Community Platform: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,853 ▲10713.60 ▼0.631.55 ▼0.0639.34 ▼4.37
Dashboard /wp-admin2,256 ▲655.89 ▲0.98107.57 ▲0.1441.45 ▼0.53
Posts /wp-admin/edit.php2,139 ▲502.00 ▼0.0239.24 ▼0.4336.19 ▼1.38
Add New Post /wp-admin/post-new.php1,570 ▲4223.25 ▲0.30636.23 ▼38.6857.65 ▲0.22
Media Library /wp-admin/upload.php1,441 ▲534.22 ▲0.02107.79 ▲5.9845.61 ▲3.24
WriteShare /wp-admin/admin.php?page=writeshare1,4579.20288.0673.73
Content /wp-admin/edit.php?post_type=wpws_content1,1541.9431.7932.18
Add New /wp-admin/post-new.php?post_type=wpws_content2,4817.82166.8464.02
Settings /wp-admin/admin.php?page=writeshare-settings1,0512.0724.2927.36

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

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
Even though everything seems fine, this is not 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
The following issues need your attention
  • 8× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Notice
      Trying to get property 'templates' of non-object in wp-content/plugins/writeshare/templates/profile.php on line 4
    • > PHP Notice
      Trying to get property 'tags' of non-object in wp-content/plugins/writeshare/templates/write.php on line 5
    • > PHP Notice
      Trying to get property 'tags' of non-object in wp-content/plugins/writeshare/templates/profile.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_profile_user() on null in wp-content/plugins/writeshare/templates/profile.php:4
    • > PHP Notice
      Trying to get property 'templates' of non-object in wp-content/plugins/writeshare/templates/write.php on line 5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/writeshare/templates/filter.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/writeshare/templates/meta.php:16
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_content() on null in wp-content/plugins/writeshare/templates/write.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 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
Attributes that require attention:
  • Donate link: Invalid url: "donations@l-word.com"
  • Tags: Please reduce the number of tags, currently 32 tag instead of maximum 10
You can look at the official readme.txt

writeshare/writeshare.php Passed 13 tests

"WriteShare Writing Community Platform" version 1.1.18's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
75 characters long description:
Writing Platform for education/LMS, fanfiction, creative writing, and more.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected1,411 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP123024341,407
JavaScript1413
CSS1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity14.44
▷ Minimum class complexity1.00
▷ Maximum class complexity53.00
Average method complexity2.68
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods38
▷ Static methods12.63%
▷ Public methods38100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions26
▷ Named functions00.00%
▷ Anonymous functions26100.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
PNG images were not found in this plugin