10% movable-type-login-skin

Code Review | Movable Type Login Skin

WordPress plugin Movable Type Login Skin scored10%from 54 tests.

About plugin

  • Plugin page: movable-type-logi...
  • Plugin version: 0.01
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-3.8
  • WordPress version: 6.3.1
  • First release: Jan 3, 2014
  • Latest release: Jan 3, 2014
  • Number of updates: 7
  • Update frequency: every 1.9 days
  • Top authors: misternifty (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

10+ active /929 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/movable-type-login-skin/fake-mt-login.php+17
    Undefined index: action

Server metrics [RAM: ▼1.94MB] [CPU: ▼52.86ms] Passed 4 tests

An overview of server-side resources used by Movable Type Login Skin
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.05 ▼1.413.71 ▼36.95
Dashboard /wp-admin2.07 ▼1.244.96 ▼43.33
Posts /wp-admin/edit.php2.07 ▼1.296.55 ▼42.75
Add New Post /wp-admin/post-new.php2.07 ▼3.825.14 ▼88.40
Media Library /wp-admin/upload.php2.07 ▼1.165.51 ▼30.78

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
db_upgraded
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Movable Type Login Skin
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲6813.69 ▼0.691.85 ▲0.1138.91 ▼1.40
Dashboard /wp-admin2,209 ▲204.85 ▼0.10111.45 ▼2.2744.17 ▲0.23
Posts /wp-admin/edit.php2,089 ▼02.04 ▼0.0139.07 ▼2.7535.71 ▼0.24
Add New Post /wp-admin/post-new.php1,542 ▲2318.40 ▼4.84624.44 ▼92.5053.99 ▼6.90
Media Library /wp-admin/upload.php1,391 ▲64.21 ▼0.0598.61 ▼5.2141.20 ▼2.90

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/movable-type-login-skin/fake-mt-login.php+17
    Undefined index: action
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
The following issues need your attention
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/movable-type-login-skin/fake-mt-login.php:17
    • > PHP Notice
      Undefined index: action in wp-content/plugins/movable-type-login-skin/fake-mt-login.php on line 17

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed: The official readme.txt is a good inspiration

movable-type-login-skin/fake-mt-login.php 92% from 13 tests

The entry point to "Movable Type Login Skin" version 0.01 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("movable-type-login-skin.php" instead of "fake-mt-login.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected147 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
CSS1180132
JavaScript1008
PHP1197

PHP code Passed 2 tests

An overview 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.25
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/chromeless_bg_b.png1.84KB1.40KB▼ 23.96%