10% wp-stacker

Code Review | WP Stacker

WordPress plugin WP Stacker scored10%from 54 tests.

About plugin

  • Plugin page: wp-stacker
  • Plugin version: 1.8.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-4.2
  • WordPress version: 6.3.1
  • First release: Feb 8, 2013
  • Latest release: Feb 23, 2016
  • Number of updates: 18
  • Update frequency: every 61.7 days
  • Top authors: jankarres (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

10+ active /4,607 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
  • This plugin did not install gracefully
    • > Error in wp-content/plugins/wp-stacker/wp-stacker.php+212
    Uncaught Error: Call to undefined function mcrypt_encrypt() in wp-content/plugins/wp-stacker/wp-stacker.php:212
    Stack trace:
    #0 wp-content/plugins/wp-stacker/wp-stacker.php(143): wpstacker->xcrypt()
    #1 wp-includes/class-wp-hook.php(310): wpstacker->activate()
    #2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #3 wp-includes/plugin.php(517): WP_Hook->do_action()
    #4 wp-admin/includes/plugin.php(693): do_action()

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.18ms] Passed 4 tests

A check of server-side resources used by WP Stacker
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.08 ▼1.12
Dashboard /wp-admin3.31 ▲0.0148.99 ▼4.95
Posts /wp-admin/edit.php3.36 ▲0.0152.50 ▲0.03
Add New Post /wp-admin/post-new.php5.89 ▲0.0186.54 ▼10.15
Media Library /wp-admin/upload.php3.24 ▲0.0136.88 ▼0.49

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 16 new files
Database: 1 new table, 29 new options
New tables
wp_wpstacker_posted_links
New WordPress options
wpstacker_mark_as_readed
wpstacker_entry_building
wpstacker_post_status
widget_theysaidso_widget
widget_recent-posts
wpstacker_pocket_access_key
wpstacker_key_a
wpstacker_version
wpstacker_order
wpstacker_meta_keyword_as_tags
...

Browser metrics Passed 4 tests

WP Stacker: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.63 ▲0.241.80 ▼0.0839.13 ▼5.86
Dashboard /wp-admin2,192 ▲125.49 ▼0.1380.79 ▼8.5837.52 ▼4.08
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0536.00 ▼0.4632.75 ▼3.54
Add New Post /wp-admin/post-new.php1,546 ▲2018.06 ▼5.16600.86 ▼89.9762.24 ▲4.92
Media Library /wp-admin/upload.php1,397 ▼64.20 ▲0.0294.82 ▼7.2440.73 ▼4.23

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_wpstacker_posted_links
  • This plugin did not uninstall successfully, leaving 29 options in the database
    • wpstacker_reference_wpstacker
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • wpstacker_mark_as_readed
    • wpstacker_order
    • wpstacker_introduction_text
    • wpstacker_key_b
    • wpstacker_ping_status
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

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
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-stacker/wp-stacker.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Screenshots: These screenshots require images: #1 (Start getting links), #2 (Customize links), #3 (Example post), #4 (Settings)
You can take inspiration from this readme.txt

wp-stacker/wp-stacker.php 92% from 13 tests

The primary PHP file in "WP Stacker" version 1.8.5 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 165 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin1,606 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP12422231,481
CSS326091
JavaScript110634

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity240.00
▷ Minimum class complexity240.00
▷ Maximum class complexity240.00
Average method complexity9.85
▷ Minimum method complexity1.00
▷ Maximum method complexity67.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods27
▷ Static methods00.00%
▷ Public methods2281.48%
▷ Protected methods00.00%
▷ Private methods518.52%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
8 PNG files occupy 0.60MB with 0.26MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/icons/32.png0.44KB0.77KB0.00%
screenshot-2.png85.98KB29.29KB▼ 65.93%
images/arrow.png0.19KB0.17KB▼ 15.08%
screenshot-1.png72.69KB24.39KB▼ 66.44%
screenshot-3.png174.41KB55.04KB▼ 68.44%