79% scriptexpose

Code Review | ScriptExpose 1.0

WordPress plugin ScriptExpose 1.0 scored79%from 54 tests.

About plugin

  • Plugin page: scriptexpose
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.5.1
  • WordPress version: 6.3.1
  • First release: May 24, 2016
  • Latest release: Nov 29, 2021
  • Number of updates: 4
  • Update frequency: every 505.5 days
  • Top authors: scriptexpose (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /554 total downloads

Benchmarks

Plugin footprint 65% 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.05MB] [CPU: ▼8.86ms] Passed 4 tests

This is a short check of server-side resources used by ScriptExpose 1.0
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0442.53 ▼1.69
Dashboard /wp-admin3.36 ▲0.0551.35 ▼7.19
Posts /wp-admin/edit.php3.41 ▲0.0550.94 ▼3.33
Add New Post /wp-admin/post-new.php5.94 ▲0.0586.00 ▼15.94
Media Library /wp-admin/upload.php3.27 ▲0.0433.51 ▼8.98
Shortcode modules /wp-admin/admin.php?page=Script_et_set_shortcode3.2534.64
Set style modules /wp-admin/admin.php?page=Script_et_make_style3.3546.97
ScriptEt /wp-admin/admin.php?page=Script_et_module_view_table3.2838.57

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 81 new files
Database: 2 new tables, 10 new options
New tables
wp_theme_module
wp_theme_module_css
New WordPress options
widget_recent-comments
widget_theysaidso_widget
current_style
catalog_active
catalog_load
theysaidso_admin_options
temp_array
widget_recent-posts
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by ScriptExpose 1.0
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲5914.25 ▼0.101.71 ▼0.1344.61 ▼1.66
Dashboard /wp-admin2,229 ▲525.58 ▼0.1294.89 ▼13.3841.78 ▼10.80
Posts /wp-admin/edit.php2,128 ▲281.94 ▼0.0337.57 ▼0.6634.87 ▼3.46
Add New Post /wp-admin/post-new.php1,554 ▲2823.15 ▼0.55666.76 ▼23.7355.79 ▼10.72
Media Library /wp-admin/upload.php1,431 ▲314.17 ▲0.0293.79 ▼14.0243.77 ▼0.39
Shortcode modules /wp-admin/admin.php?page=Script_et_set_shortcode9391.7426.6124.47
Set style modules /wp-admin/admin.php?page=Script_et_make_style6,0688.58300.11101.83
ScriptEt /wp-admin/admin.php?page=Script_et_module_view_table1,3153.5656.6761.58

Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 50% 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 2 tables in the database
    • wp_theme_module
    • wp_theme_module_css
  • Zombie WordPress options detected upon uninstall: 9 options
    • widget_recent-comments
    • widget_recent-posts
    • catalog_active
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • current_style
    • theysaidso_admin_options
    • temp_array

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Congratulations! This plugin passed the SRP test

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 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Donate link: Invalid URI ("binwavelab@gmail.com")
You can look at the official readme.txt

scriptexpose/et_main.php 92% from 13 tests

The main PHP file in "ScriptExpose 1.0" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("scriptexpose.php" instead of "et_main.php")

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
There were no executable files found in this plugin8,944 lines of code in 48 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript266331975,144
CSS7140851,572
PHP96723031,285
HTML39922852
JSON30091

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity16.11
▷ Minimum class complexity1.00
▷ Maximum class complexity64.00
Average method complexity3.03
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods67
▷ Static methods1217.91%
▷ Public methods67100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants250.00%
▷ Class constants250.00%
▷ Public constants2100.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
27 PNG files occupy 0.17MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
js/color_js/colorpicker-master/images/map-opacity.png0.14KB0.09KB▼ 34.53%
js/color_js/colorpicker-master/images/128/bar-alpha.png1.53KB1.90KB0.00%
js/jquery-ui/images/ui-bg_highlight-soft_80_eeeeee_1x100.png0.27KB0.13KB▼ 51.45%
js/color_js/colorpicker-master/images/bar-alpha.png2.14KB2.95KB0.00%
js/jquery-ui/images/ui-bg_inset-soft_30_f58400_1x100.png0.33KB0.18KB▼ 44.41%