84% upscribe

Code Review | Upscribe

WordPress plugin Upscribe scored 84% from 54 tests.

About plugin

  • Plugin page: upscribe
  • Plugin version: 0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9.0-5.6
  • WordPress version: 6.3.1
  • First release: Nov 24, 2016
  • Latest release: Jan 20, 2021
  • Number of updates: 11
  • Update frequency: every 137.9 days
  • Top authors: joshanderton (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active / 1,525 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by Upscribe
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.82 ▼6.95
Dashboard /wp-admin3.33 ▲0.0345.48 ▼11.15
Posts /wp-admin/edit.php3.38 ▲0.0245.25 ▲2.68
Add New Post /wp-admin/post-new.php5.91 ▲0.0286.78 ▼18.90
Media Library /wp-admin/upload.php3.25 ▲0.0236.73 ▲0.82

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
upscribe_api_key
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Upscribe
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,844 ▲10913.20 ▼1.182.35 ▲0.5943.06 ▼1.18
Dashboard /wp-admin2,221 ▲295.86 ▲0.9196.94 ▼13.2839.20 ▼7.56
Posts /wp-admin/edit.php2,104 ▲152.01 ▲0.0235.89 ▼2.3832.67 ▼3.65
Add New Post /wp-admin/post-new.php1,524 ▼1017.70 ▼5.58673.67 ▲7.3469.62 ▲10.79
Media Library /wp-admin/upload.php1,394 ▲34.23 ▲0.0493.08 ▼11.5142.36 ▼4.78

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • upscribe_api_key
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/upscribe/upscribe.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Tags: Please reduce the number of tags, currently 17 tag instead of maximum 10
The official readme.txt is a good inspiration

upscribe/upscribe.php Passed 13 tests

The main PHP script in "Upscribe" version 0.7 is automatically included on every request by WordPress
34 characters long description:
Embeddable newsletter signup forms

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
Success! There were no dangerous files found in this plugin57 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1112457

PHP code Passed 2 tests

This is a very shot review 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.12
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions116.67%
▷ Anonymous functions583.33%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin