78% scribble

Code Review | Scribble

WordPress plugin Scribble scored78%from 54 tests.

About plugin

  • Plugin page: scribble
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9-3.8
  • WordPress version: 6.3.1
  • First release: Jan 20, 2014
  • Latest release: Jan 24, 2014
  • Number of updates: 5
  • Update frequency: every 0.8 days
  • Top authors: clevelandwebdeveloper (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /852 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by Scribble
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0143.21 ▲3.53
Dashboard /wp-admin3.33 ▼0.0247.37 ▼20.59
Posts /wp-admin/edit.php3.38 ▲0.0247.66 ▼1.63
Add New Post /wp-admin/post-new.php5.93 ▲0.0491.22 ▼10.28
Media Library /wp-admin/upload.php3.25 ▲0.0235.84 ▼2.09
Scribble /wp-admin/options-general.php?page=scribble-setting-admin3.2031.67

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Scribble
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲7613.25 ▼1.135.28 ▲3.3840.55 ▼1.77
Dashboard /wp-admin2,218 ▲385.75 ▲0.1689.38 ▼5.9742.57 ▲3.47
Posts /wp-admin/edit.php2,122 ▲222.30 ▲0.3335.95 ▼0.4234.10 ▼1.26
Add New Post /wp-admin/post-new.php1,543 ▲1523.33 ▲0.21680.22 ▲50.0537.26 ▼22.47
Media Library /wp-admin/upload.php1,420 ▲174.43 ▲0.04114.13 ▲11.6545.77 ▲2.00
Scribble /wp-admin/options-general.php?page=scribble-setting-admin1,1582.5853.9337.91

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=scribble-setting-admin
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=scribble-setting-admin
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=scribble-setting-admin
    • > Notice in wp-content/plugins/scribble/index.php+257
    Undefined index: class
    • > GET request to /wp-admin/options-general.php?page=scribble-setting-admin
    • > Notice in wp-content/plugins/scribble/index.php+229
    Undefined index: default

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/scribble/index.php:25

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Screenshots: Add descriptions for screenshots #2, #3, #4 in scribble/assets to your readme.txt
The official readme.txt is a good inspiration

scribble/index.php 92% from 13 tests

The main PHP file in "Scribble" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("scribble.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected483 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP16871317
JavaScript24714166

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity22.00
▷ Minimum class complexity22.00
▷ Maximum class complexity22.00
Average method complexity2.31
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods16
▷ Static methods00.00%
▷ Public methods16100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin