67% wp-maltor

Code Review | WP Maltor

WordPress plugin WP Maltor scored67%from 54 tests.

About plugin

  • Plugin page: wp-maltor
  • Plugin version: 0.1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.5
  • WordPress version: 6.3.1
  • First release: Sep 4, 2014
  • Latest release: Apr 15, 2016
  • Number of updates: 11
  • Update frequency: every 53.6 days
  • Top authors: davidmerinas (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

70+ active /2,208 total downloads

Benchmarks

Plugin footprint 64% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▼1.20MB] [CPU: ▲772.78ms] 50% from 4 tests

Server-side resources used by WP Maltor
It is recommended to improve the following
  • CPU: Try to keep total CPU usage under 500.00ms (currently 829.90ms on /wp-admin/options-general.php?page=wp_maltor_options)
  • Extra CPU: Try to keep extra CPU usage under 200.00ms (currently 772.78ms on /wp-admin/options-general.php?page=wp_maltor_options)
PageMemory (MB)CPU Time (ms)
Home /2.76 ▼0.70834.95 ▲783.80
Dashboard /wp-admin2.81 ▼0.49848.98 ▲794.07
Posts /wp-admin/edit.php2.82 ▼0.541,406.33 ▲1,352.66
Add New Post /wp-admin/post-new.php2.81 ▼3.07834.73 ▲734.75
Media Library /wp-admin/upload.php2.81 ▼0.41815.26 ▲778.49
WP Maltor /wp-admin/options-general.php?page=wp_maltor_options2.82829.90

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 10 new options
New WordPress options
WP_MalTor_error
WP_MalTor_action
WP_MalTor_active
can_compress_scripts
widget_recent-comments
WP_MalTor_torlist
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

WP Maltor: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,783 ▲2214.27 ▲0.041.81 ▼0.2844.32 ▼1.15
Dashboard /wp-admin2,199 ▲225.64 ▲0.0484.49 ▼17.3039.86 ▼3.20
Posts /wp-admin/edit.php2,104 ▲42.04 ▲0.0533.63 ▼5.9934.82 ▼0.65
Add New Post /wp-admin/post-new.php1,551 ▲2023.57 ▲0.21622.72 ▲25.8960.37 ▼11.20
Media Library /wp-admin/upload.php1,404 ▲74.17 ▼0.1099.85 ▼15.6646.39 ▼3.86
WP Maltor /wp-admin/options-general.php?page=wp_maltor_options8642.1825.9327.04

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
  • This plugin cannot be uninstalled
    • > Warning in wp-content/plugins/wp-maltor/wpmaltor.php+52
    file_get_contents(http://iprep.wpmaltor.com/): failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden

  • This plugin does not fully uninstall, leaving 10 options in the database
    • db_upgraded
    • widget_recent-comments
    • WP_MalTor_error
    • widget_recent-posts
    • WP_MalTor_torlist
    • WP_MalTor_active
    • can_compress_scripts
    • theysaidso_admin_options
    • WP_MalTor_action
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=wp_maltor_options
    • > Warning in wp-content/plugins/wp-maltor/wpmaltor.php+52
    file_get_contents(http://iprep.wpmaltor.com/): failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-maltor/wpmaltor.php:11

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Screenshots: Please add an image for screenshot #1 (screenshot-1.png)
You can take inspiration from this readme.txt

wp-maltor/wpmaltor.php 92% from 13 tests

This is the main PHP file of "WP Maltor" version 0.1.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wp-maltor.php" instead of "wpmaltor.php")

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 plugin199 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP12916188
HTML10011

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
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%
Functions9
▷ Named functions9100.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
2 PNG files occupy 0.26MB with 0.14MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/default.png85.92KB37.99KB▼ 55.78%
screenshot-1.png176.10KB83.21KB▼ 52.75%