89% flask-micro

Code Review | IDE Micro code-editor

WordPress plugin IDE Micro code-editor scored89%from 54 tests.

About plugin

  • Plugin page: flask-micro
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3.1-4.3.1
  • WordPress version: 6.3.1
  • First release: Oct 10, 2015
  • Latest release: Oct 10, 2015
  • Number of updates: 17
  • Update frequency: N/A
  • Top authors: Luke Alford (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,619 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.15ms] Passed 4 tests

This is a short check of server-side resources used by IDE Micro code-editor
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0139.74 ▼5.04
Dashboard /wp-admin3.32 ▼0.0246.93 ▼13.82
Posts /wp-admin/edit.php3.37 ▲0.0148.15 ▲1.32
Add New Post /wp-admin/post-new.php5.90 ▲0.0192.54 ▲9.35
Media Library /wp-admin/upload.php3.25 ▲0.0138.00 ▲4.96

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for IDE Micro code-editor
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲5413.18 ▼1.571.74 ▼0.3140.22 ▼3.35
Dashboard /wp-admin2,203 ▲174.84 ▼0.12115.05 ▼11.5742.48 ▼3.40
Posts /wp-admin/edit.php2,089 ▼32.00 ▼0.1339.30 ▲0.2235.60 ▼1.61
Add New Post /wp-admin/post-new.php1,533 ▲423.16 ▲4.91614.30 ▼25.1061.46 ▲2.42
Media Library /wp-admin/upload.php1,388 ▲34.31 ▲0.0997.37 ▼5.7144.43 ▼2.21

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

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
The smoke test was a success, however most plugin functionality was not tested

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 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Tags: Too many tags (14 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can take inspiration from this readme.txt

flask-micro/flask_micro.php 69% from 13 tests

The main file in "IDE Micro code-editor" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("flask-micro.php" instead of "flask_micro.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 179 characters long)
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected520 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
CSS43010234
JavaScript33715225
PHP2173161

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.04
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods2100.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected