90% movable

Code Review | Movable

WordPress plugin Movable scored90%from 54 tests.

About plugin

  • Plugin page: movable
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.5
  • WordPress version: 6.3.1
  • First release: Apr 19, 2020
  • Latest release: Aug 10, 2020
  • Number of updates: 7
  • Update frequency: every 16.3 days
  • Top authors: blockhandbook (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /744 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
Installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼7.28ms] Passed 4 tests

Analyzing server-side resources used by Movable
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0945.06 ▲1.40
Dashboard /wp-admin3.39 ▲0.0550.71 ▼16.32
Posts /wp-admin/edit.php3.52 ▲0.1556.88 ▲6.25
Add New Post /wp-admin/post-new.php5.96 ▲0.0787.68 ▼17.83
Media Library /wp-admin/upload.php3.32 ▲0.0939.13 ▲3.63

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

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

Browser metrics Passed 4 tests

Movable: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,376 ▲61527.86 ▲13.4533.21 ▲31.4739.02 ▼8.52
Dashboard /wp-admin2,499 ▲32513.79 ▲8.14173.97 ▲76.9441.67 ▼1.98
Posts /wp-admin/edit.php2,432 ▲33211.80 ▲9.83112.02 ▲73.3236.45 ▲1.34
Add New Post /wp-admin/post-new.php1,545 ▲2023.23 ▲0.15531.08 ▼125.4637.52 ▼18.75
Media Library /wp-admin/upload.php1,798 ▲39813.12 ▲8.89160.54 ▲50.0141.23 ▼1.20

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 does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
10 plugin tags: drag and drop, delete blocks, block, blocks, insert blocks...

movable/class-plugin.php 92% from 13 tests

The entry point to "Movable" version 1.0.1 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("movable.php" instead of "class-plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected1,044 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP11114293472
JavaScript63139439
CSS328995
Sass24237
JSON1001

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.38
Average class complexity10.33
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.81
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods32
▷ Static methods721.88%
▷ Public methods3093.75%
▷ Protected methods00.00%
▷ Private methods26.25%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

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