84% scale-lite-tools

Code Review | Scale Lite Tools

WordPress plugin Scale Lite Tools scored84%from 54 tests.

About plugin

  • Plugin page: scale-lite-tools
  • Plugin version: 1.0.9.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.7
  • WordPress version: 6.3.1
  • First release: Jan 7, 2017
  • Latest release: Feb 19, 2017
  • Number of updates: 123
  • Update frequency: every 0.3 days
  • Top authors: ionutmorariu (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /509 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼10.49ms] Passed 4 tests

This is a short check of server-side resources used by Scale Lite Tools
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.28 ▼6.09
Dashboard /wp-admin3.32 ▲0.0250.70 ▼2.51
Posts /wp-admin/edit.php3.37 ▲0.0245.43 ▼3.48
Add New Post /wp-admin/post-new.php5.90 ▲0.0282.73 ▼27.79
Media Library /wp-admin/upload.php3.25 ▲0.0235.64 ▼4.61
Scale Lite Tools /wp-admin/options-general.php?page=scale-lite-tools-options3.2128.19

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 44 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Scale Lite Tools
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.37 ▼0.021.81 ▲0.2342.14 ▲1.23
Dashboard /wp-admin2,195 ▲215.62 ▲0.0699.07 ▲2.5544.10 ▲3.91
Posts /wp-admin/edit.php2,109 ▲92.02 ▲0.0035.27 ▼3.6737.04 ▼0.99
Add New Post /wp-admin/post-new.php1,531 ▲523.31 ▲0.28626.82 ▼37.3049.28 ▼9.02
Media Library /wp-admin/upload.php1,400 ▼04.21 ▲0.0199.03 ▼17.4640.75 ▼6.65
Scale Lite Tools /wp-admin/options-general.php?page=scale-lite-tools-options8202.0325.2539.25

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 16× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/scale-lite-tools/bootstrap.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/scale-lite-tools/inc/sl-google-maps/admin-menu.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Scale_Lite\\add_action() in wp-content/plugins/scale-lite-tools/inc/sl-google-maps/class-slt-gmap-meta-fields.php:83
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Scale_Lite\\is_admin() in wp-content/plugins/scale-lite-tools/inc/sl-main-dashboard/main.php:313
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/scale-lite-tools/inc/sl-debug/debug.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/scale-lite-tools/inc/sl-google-maps/maps-cpt.php:50
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/scale-lite-tools/inc/shortcode-tools/shortcodes.php:55
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Scale_Lite\\add_action() in wp-content/plugins/scale-lite-tools/inc/sl-html-block/Class_Html_Block_Meta_Fields.php:51
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/scale-lite-tools/inc/helpers/sl-reveal-category-id.php:79
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Scale_Lite\\is_admin() in wp-content/plugins/scale-lite-tools/inc/sl-google-maps/class-sl-maps-sub-menu.php:100

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
2 plugin tags: google maps, html block

scale-lite-tools/scale-lite-tools.php 92% from 13 tests

The entry point to "Scale Lite Tools" version 1.0.9.1 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 165 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin2,756 lines of code in 33 files:
LanguageFilesBlank linesComment linesLines of code
PHP202144221,556
JavaScript77597804
CSS53118332
SVG10164

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity14.50
▷ Minimum class complexity2.00
▷ Maximum class complexity34.00
Average method complexity3.35
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods46
▷ Static methods00.00%
▷ Public methods46100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions35
▷ Named functions35100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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
PNG images were not found in this plugin