84% movable-content-editor

Code Review | Movable Content Editor

WordPress plugin Movable Content Editor scored84%from 54 tests.

About plugin

  • Plugin page: movable-content-e...
  • Plugin version: 0.1.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8.1-3.9.1
  • WordPress version: 6.3.1
  • First release: Jul 27, 2014
  • Latest release: Aug 28, 2014
  • Number of updates: 19
  • Update frequency: every 2.3 days
  • Top authors: pekz0r (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,352 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.06MB] [CPU: ▼4.08ms] Passed 4 tests

An overview of server-side resources used by Movable Content Editor
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0437.85 ▼5.70
Dashboard /wp-admin3.37 ▲0.0747.37 ▼3.00
Posts /wp-admin/edit.php3.48 ▲0.1256.91 ▲2.77
Add New Post /wp-admin/post-new.php5.95 ▲0.0683.85 ▼10.39
Media Library /wp-admin/upload.php3.29 ▲0.0638.02 ▲4.95
Movable Content Editor /wp-admin/options-general.php?page=movable-content-editor3.2633.97

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Movable Content Editor
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.27 ▼0.961.63 ▼0.5444.55 ▲1.67
Dashboard /wp-admin2,213 ▲395.85 ▼0.0097.17 ▼20.5836.81 ▼6.77
Posts /wp-admin/edit.php2,096 ▲72.02 ▼0.0339.83 ▲2.7834.43 ▼0.34
Add New Post /wp-admin/post-new.php1,517 ▲317.61 ▲0.11683.09 ▲5.5852.25 ▼5.71
Media Library /wp-admin/upload.php1,395 ▲104.21 ▲0.02108.29 ▲10.4246.35 ▲2.08
Movable Content Editor /wp-admin/options-general.php?page=movable-content-editor8651.7430.0226.46

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means 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 take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/movable-content-editor/movable-content-editor.php:352

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: better, movable, editing, content editor, wysiwyg

movable-content-editor/movable-content-editor.php 92% from 13 tests

"Movable Content Editor" version 0.1.8's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • 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 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin343 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP27252233
PO File1153550
JavaScript210032
CSS24925
Markdown1103

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity19.00
▷ Minimum class complexity19.00
▷ Maximum class complexity19.00
Average method complexity1.86
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods21
▷ Static methods14.76%
▷ Public methods21100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.10MB with 0.06MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png100.23KB37.67KB▼ 62.41%