84% scribit-pro

Code Review | Scribit.Pro

WordPress plugin Scribit.Pro scored84%from 54 tests.

About plugin

  • Plugin page: scribit-pro
  • Plugin version: 1.0.3
  • PHP compatiblity: 8.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.4
  • WordPress version: 6.3.1
  • First release: May 10, 2023
  • Latest release: Nov 6, 2023
  • Number of updates: 8
  • Update frequency: every 23.1 days
  • Top authors: nstapelbroek (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /901 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.52ms] Passed 4 tests

An overview of server-side resources used by Scribit.Pro
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.72 ▲1.99
Dashboard /wp-admin3.31 ▲0.0045.17 ▼6.96
Posts /wp-admin/edit.php3.36 ▲0.0045.16 ▼0.40
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.92 ▼2.83
Media Library /wp-admin/upload.php3.23 ▲0.0032.75 ▼3.89

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Scribit.Pro
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2814.33 ▼0.381.83 ▼0.0943.39 ▼0.27
Dashboard /wp-admin2,198 ▲205.63 ▼0.0593.38 ▼20.8043.91 ▼2.73
Posts /wp-admin/edit.php2,100 ▼01.95 ▼0.0639.28 ▲1.8135.54 ▼3.78
Add New Post /wp-admin/post-new.php1,525 ▼123.46 ▲0.54642.47 ▼92.9458.29 ▲3.57
Media Library /wp-admin/upload.php1,400 ▼04.20 ▲0.0296.45 ▼19.0742.65 ▼6.55

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Almost there! Just fix the following items
  • 6× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.0.0". You are running 7.4.16. in wp-content/plugins/scribit-pro/vendor/composer/platform_check.php on line 24
    • > PHP Fatal error
      Uncaught Error: Interface 'Scribit\\WordPress\\IframeReplacers\\Replacer' not found in wp-content/plugins/scribit-pro/src/IframeReplacers/Regex.php:10
    • > PHP Fatal error
      Uncaught Error: Interface 'Scribit\\WordPress\\Settings\\Setting' not found in wp-content/plugins/scribit-pro/src/Settings/WidgetWrapper.php:16
    • > PHP Fatal error
      Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.0.0". You are running 7.4.16. in wp-content/plugins/scribit-pro/vendor/composer/platform_check.php on line 24
    • > PHP Fatal error
      Uncaught Error: Interface 'Scribit\\WordPress\\Settings\\Setting' not found in wp-content/plugins/scribit-pro/src/Settings/ScribitID.php:11
    • > PHP Fatal error
      Uncaught Error: Interface 'Scribit\\WordPress\\IframeReplacers\\Replacer' not found in wp-content/plugins/scribit-pro/src/IframeReplacers/Dom.php:14

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: accessibility, embeds, youtube, video, vimeo...

scribit-pro/plugin.php 85% from 13 tests

"Scribit.Pro" version 1.0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("scribit-pro.php" instead of "plugin.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected956 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
PHP24274497945
JSON20011

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity9.00
▷ Minimum class complexity1.00
▷ Maximum class complexity48.00
Average method complexity2.97
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces5
Interfaces2
Traits0
Classes13
▷ Abstract classes00.00%
▷ Concrete classes13100.00%
▷ Final classes00.00%
Methods68
▷ Static methods2435.29%
▷ Public methods6291.18%
▷ Protected methods00.00%
▷ Private methods68.82%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants7
▷ Global constants00.00%
▷ Class constants7100.00%
▷ Public constants457.14%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin