73% wp-scribe-box

Code Review | WP Scribe Box

WordPress plugin WP Scribe Box scored73%from 54 tests.

About plugin

  • Plugin page: wp-scribe-box
  • Plugin version: 0.2.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.1
  • WordPress version: 6.3.1
  • First release: Apr 12, 2013
  • Latest release: Jan 20, 2015
  • Number of updates: 23
  • Update frequency: every 28.2 days
  • Top authors: jp2112 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,852 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
Install script ran successfully

Server metrics [RAM: ▲0.17MB] [CPU: ▼2.72ms] Passed 4 tests

An overview of server-side resources used by WP Scribe Box
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1737.90 ▼2.94
Dashboard /wp-admin3.47 ▲0.1747.03 ▼3.48
Posts /wp-admin/edit.php3.59 ▲0.2350.17 ▲4.70
Add New Post /wp-admin/post-new.php6.05 ▲0.1786.42 ▼8.32
Media Library /wp-admin/upload.php3.40 ▲0.1739.25 ▲3.88
WP Scribe Box /wp-admin/options-general.php?page=wp-scribe-box3.3430.33

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 7 new options
New WordPress options
wp_scribe_box
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for WP Scribe Box
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8313.64 ▼0.732.04 ▲0.0345.11 ▲2.30
Dashboard /wp-admin2,210 ▲195.85 ▼0.04101.08 ▼7.2238.60 ▼3.28
Posts /wp-admin/edit.php2,093 ▲41.99 ▼0.0141.14 ▲0.2035.68 ▼1.65
Add New Post /wp-admin/post-new.php1,535 ▼023.27 ▲0.05698.40 ▲18.9056.19 ▼10.33
Media Library /wp-admin/upload.php1,395 ▲104.20 ▲0.0499.96 ▲5.8844.11 ▼1.51
WP Scribe Box /wp-admin/options-general.php?page=wp-scribe-box1,0382.1529.6443.50

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=wp-scribe-box
    • > Notice in wp-content/plugins/wp-scribe-box/wp-scribe-box.php+162
    Undefined variable: selectedimage

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
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/wp-scribe-box/wp-scribe-box.php:21

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
    • > GET request to /wp-admin/options-general.php?page=wp-scribe-box
    • > Network (severe)
    wp-content/plugins/wp-scribe-box/images/.png - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration Passed 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
7 plugin tags: rounded, image, marketing, commission, studiopress...

wp-scribe-box/wp-scribe-box.php Passed 13 tests

The primary PHP file in "WP Scribe Box" version 0.2.3 is used by WordPress to initiate all plugin functionality
93 characters long description:
Display the Scribe affiliate box on your WordPress website. Make money as a Scribe affiliate.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin570 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP32860554
CSS20013
JavaScript1003

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.22
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%
Functions36
▷ Named functions36100.00%
▷ Anonymous functions00.00%
Constants29
▷ Global constants29100.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
11 PNG files occupy 0.16MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/examples.png3.78KB2.24KB▼ 40.82%
images/support.png5.03KB2.79KB▼ 44.54%
images/scribe-125x125.png12.36KB6.47KB▼ 47.68%
images/scribe-250x250.png22.85KB12.86KB▼ 43.71%
images/scribe-235x247.png9.59KB9.09KB▼ 5.14%