89% scribblelive-wp

Code Review | ScribbleLive WP

WordPress plugin ScribbleLive WP scored89%from 54 tests.

About plugin

  • Plugin page: scribblelive-wp
  • Plugin version: 1.1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.6.1
  • WordPress version: 6.3.1
  • First release: Dec 4, 2015
  • Latest release: Nov 25, 2016
  • Number of updates: 21
  • Update frequency: every 17.1 days
  • Top authors: mghali (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,549 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.08MB] [CPU: ▼4.68ms] Passed 4 tests

An overview of server-side resources used by ScribbleLive WP
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0635.27 ▼2.10
Dashboard /wp-admin3.40 ▲0.0941.87 ▼7.57
Posts /wp-admin/edit.php3.52 ▲0.1652.25 ▲6.95
Add New Post /wp-admin/post-new.php5.98 ▲0.1075.94 ▼10.30
Media Library /wp-admin/upload.php3.32 ▲0.0936.11 ▲1.27
ScribbleLive /wp-admin/options-general.php?page=scribble-live-wp3.2942.36

Server storage [IO: ▲0.06MB] [DB: ▲0.07MB] Passed 3 tests

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

Browser metrics Passed 4 tests

An overview of browser requirements for ScribbleLive WP
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,799 ▲3814.23 ▼0.351.56 ▼0.4638.50 ▼5.07
Dashboard /wp-admin2,205 ▲285.57 ▲0.0194.67 ▲9.2344.62 ▲1.38
Posts /wp-admin/edit.php2,110 ▲72.02 ▲0.0135.72 ▼4.6934.73 ▼3.06
Add New Post /wp-admin/post-new.php1,537 ▲1123.35 ▲0.28665.88 ▼37.2356.93 ▲3.70
Media Library /wp-admin/upload.php1,413 ▲104.20 ▼0.0993.17 ▼9.0841.87 ▼1.67
ScribbleLive /wp-admin/options-general.php?page=scribble-live-wp8532.0126.2533.30

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Screenshot #2 (The nofollow attribute mode setting allows advanced seo controls for internal and external links.) image not found
Please take inspiration from this readme.txt

scribblelive-wp/scribblelive-wp.php 92% from 13 tests

The principal PHP file in "ScribbleLive WP" v. 1.1.0.0 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin483 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP7215555405
JavaScript19378

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 problems
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity11.40
▷ Minimum class complexity1.00
▷ Maximum class complexity43.00
Average method complexity2.30
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods40
▷ Static methods00.00%
▷ Public methods3075.00%
▷ Protected methods00.00%
▷ Private methods1025.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

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/img/scribble.png3.48KB0.80KB▼ 77.10%