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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.74 ▲0.28 | 41.45 ▲3.36 |
Dashboard /wp-admin | 3.56 ▲0.26 | 53.10 ▲3.48 |
Posts /wp-admin/edit.php | 3.67 ▲0.32 | 53.51 ▼3.71 |
Add New Post /wp-admin/post-new.php | 6.14 ▲0.25 | 93.59 ▼1.17 |
Media Library /wp-admin/upload.php | 3.48 ▲0.25 | 37.53 ▲1.41 |
WriteShare /wp-admin/admin.php?page=writeshare | 3.45 | 33.99 |
Content /wp-admin/edit.php?post_type=wpws_content | 3.53 | 49.29 |
Add New /wp-admin/post-new.php?post_type=wpws_content | 3.68 | 49.23 |
Settings /wp-admin/admin.php?page=writeshare-settings | 3.50 | 43.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,853 ▲107 | 13.60 ▼0.63 | 1.55 ▼0.06 | 39.34 ▼4.37 |
Dashboard /wp-admin | 2,256 ▲65 | 5.89 ▲0.98 | 107.57 ▲0.14 | 41.45 ▼0.53 |
Posts /wp-admin/edit.php | 2,139 ▲50 | 2.00 ▼0.02 | 39.24 ▼0.43 | 36.19 ▼1.38 |
Add New Post /wp-admin/post-new.php | 1,570 ▲42 | 23.25 ▲0.30 | 636.23 ▼38.68 | 57.65 ▲0.22 |
Media Library /wp-admin/upload.php | 1,441 ▲53 | 4.22 ▲0.02 | 107.79 ▲5.98 | 45.61 ▲3.24 |
WriteShare /wp-admin/admin.php?page=writeshare | 1,457 | 9.20 | 288.06 | 73.73 |
Content /wp-admin/edit.php?post_type=wpws_content | 1,154 | 1.94 | 31.79 | 32.18 |
Add New /wp-admin/post-new.php?post_type=wpws_content | 2,481 | 7.82 | 166.84 | 64.02 |
Settings /wp-admin/admin.php?page=writeshare-settings | 1,051 | 2.07 | 24.29 | 27.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
- > PHP Notice
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
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 302 | 434 | 1,407 |
JavaScript | 1 | 4 | 1 | 3 |
CSS | 1 | 0 | 0 | 1 |
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 code | 0.42 |
Average class complexity | 14.44 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 53.00 |
Average method complexity | 2.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 38 | |
▷ Static methods | 1 | 2.63% |
▷ Public methods | 38 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 26 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 26 | 100.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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