83% custom-script-integration

Code Review | Custom Script Integration

WordPress plugin Custom Script Integration scored 83% from 54 tests.

About plugin

  • Plugin page: custom-script-int...
  • Plugin version: 2.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Mar 2, 2015
  • Latest release: Jan 20, 2016
  • Number of updates: 13
  • Update frequency: every 24.9 days
  • Top authors: wpwox (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

1,000+ active / 11,847 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▼0.69MB] [CPU: ▼18.32ms] Passed 4 tests

This is a short check of server-side resources used by Custom Script Integration
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.43 ▼1.57
Dashboard /wp-admin3.32 ▲0.0148.16 ▼3.59
Posts /wp-admin/edit.php3.37 ▲0.0146.67 ▼1.21
Add New Post /wp-admin/post-new.php3.10 ▼2.7935.94 ▼66.89
Media Library /wp-admin/upload.php3.24 ▲0.0134.58 ▲1.14

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Custom Script Integration: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,841 ▲8413.25 ▼1.421.77 ▼0.1339.55 ▼3.77
Dashboard /wp-admin2,219 ▲285.83 ▲0.9197.10 ▼13.9038.34 ▼5.16
Posts /wp-admin/edit.php2,102 ▲102.00 ▲0.0337.67 ▼4.2934.68 ▼2.02
Add New Post /wp-admin/post-new.php6,519 ▲5,00520.12 ▲2.50891.57 ▲265.5360.49 ▲7.99
Media Library /wp-admin/upload.php1,401 ▲134.21 ▲0.04100.56 ▲0.8941.41 ▼6.37

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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
Please 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 plugin_dir_url() in wp-content/plugins/custom-script-integration/wpwox-script-integration.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Requires at least: Invalid version format
  • Tags: You are using too many tags: 11 tag instead of maximum 10
The official readme.txt is a good inspiration

custom-script-integration/wpwox-script-integration.php 85% from 13 tests

The main PHP file in "Custom Script Integration" ver. 2.1 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("custom-script-integration.php" instead of "wpwox-script-integration.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 175 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected131 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP16124131

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
There are no PNG files in this plugin