94% youscribe

Code Review | YouScribe

WordPress plugin YouScribe scored 94% from 54 tests.

About plugin

  • Plugin page: youscribe
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.1-3.1.1
  • WordPress version: 5.8.1
  • First release: Aug 21, 2013
  • Latest release: Aug 21, 2013
  • Number of updates: 2
  • Update frequency: every 6.5 days
  • Top authors: youscribe (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 580 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

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

Analyzing server-side resources used by YouScribe
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0135.92 ▲2.29
Dashboard /wp-admin3.07 ▲0.0146.21 ▲1.15
Posts /wp-admin/edit.php3.12 ▲0.0144.36 ▼0.50
Add New Post /wp-admin/post-new.php5.43 ▼0.0187.76 ▼562.21
Media Library /wp-admin/upload.php3.01 ▲0.0131.78 ▲0.27

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for YouScribe
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10716.24 ▲0.6314.08 ▲2.1547.17 ▲0.41
Dashboard /wp-admin2,967 ▲305.94 ▼0.04141.43 ▼1.90105.96 ▼5.63
Posts /wp-admin/edit.php2,739 ▼02.70 ▼0.0164.94 ▲0.5588.54 ▲2.16
Add New Post /wp-admin/post-new.php1,683 ▼1,90918.34 ▲0.10425.87 ▼76.20110.88 ▲2.85
Media Library /wp-admin/upload.php1,807 ▲595.05 ▲0.07144.27 ▼11.21115.29 ▼1.24

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully

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 no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/youscribe/wp-youscribe.php:15

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, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: publication, widget, youscribe, embed, document...

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

The main file in "YouScribe" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("youscribe.php" instead of "wp-youscribe.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin14 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP15814

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.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

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