68% wp-sitemanager

Code Review | WP SiteManager

WordPress plugin WP SiteManager scored 68% from 54 tests.

About plugin

  • Plugin page: wp-sitemanager
  • Plugin version: 1.2.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-4.9.5
  • WordPress version: 5.9.2
  • First release: Jul 11, 2012
  • Latest release: Nov 15, 2019
  • Number of updates: 76
  • Update frequency: every 35.3 days
  • Top authors: primestrategy (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

7,000+ active / 76,345 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.83MB] [CPU: ▼290.59ms] Passed 4 tests

This is a short check of server-side resources used by WP SiteManager
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.34 ▲0.8369.26 ▲11.87
Dashboard /wp-admin4.23 ▲0.8244.51 ▲7.74
Posts /wp-admin/edit.php4.52 ▲0.8856.89 ▲13.46
Add New Post /wp-admin/post-new.php7.75 ▲0.78103.73 ▼1,191.32
Media Library /wp-admin/upload.php4.18 ▲0.8835.30 ▲9.35
モジュール /wp-admin/admin.php?page=wp-sitemanager/wp-sitemanager.php4.1534.44

Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] 67% from 3 tests

A short overview of filesystem and database impact
Please fix the following
  • You have illegally modified 1 file (6.98KB) outside of "wp-content/plugins/wp-sitemanager/" and "wp-content/uploads/"
    • (new file) wp-content/advanced-cache.php
Filesystem: 31 new files
Database: 4 new tables, 2 new options
New tables
wp_sitemanager_device_group
wp_sitemanager_device
wp_sitemanager_device_relation
wp_site_cache
New WordPress options
site_manager_cache_installed
widget_sub_navi

Browser metrics Passed 4 tests

WP SiteManager: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,863 ▲10915.84 ▲0.076.63 ▼0.182.57 ▼0.46
Dashboard /wp-admin2,934 ▲736.16 ▼0.04122.03 ▼17.31171.06 ▲8.65
Posts /wp-admin/edit.php2,733 ▲423.24 ▼0.0063.71 ▼2.55143.73 ▼1.42
Add New Post /wp-admin/post-new.php1,836 ▲17521.83 ▲5.84460.55 ▲15.39213.07 ▲58.08
Media Library /wp-admin/upload.php1,744 ▲465.52 ▲0.04146.88 ▼0.59203.76 ▲7.80
マルチデバイス /wp-admin/wp-sitemanager.php-device260.940.0426.67
サイト構造 /wp-admin/wp-sitemanager.php-structure260.940.0317.69
キャッシュ /wp-admin/wp-sitemanager.php-cache260.940.0417.57
SEO & SMO /wp-admin/wp-sitemanager.php-access260.940.0616.14
モジュール /wp-admin/admin.php?page=wp-sitemanager/wp-sitemanager.php1,1182.5157.28177.43

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie tables were found after uninstall: 4 tables
    • wp_sitemanager_device
    • wp_site_cache
    • wp_sitemanager_device_relation
    • wp_sitemanager_device_group
  • Zombie WordPress options detected upon uninstall: 2 options
    • widget_sub_navi
    • site_manager_cache_installed

Smoke tests 50% 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
Almost there! Just fix the following items
  • 9× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/wp-sitemanager/modules/theme_switcher.php on line 15
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-sitemanager/modules/site-structure.php:476
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-sitemanager/modules/page-navi.php:258
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-sitemanager/modules/theme_switcher.php on line 15
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-sitemanager/modules/meta-manager.php:819
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_file_data() in wp-content/plugins/wp-sitemanager/wp-sitemanager.php:20
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-sitemanager/modules/site-cache.php:483
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-sitemanager/modules/bread-crumb.php:452
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-sitemanager/modules/theme_switcher.php on line 15

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
    • > GET request to /wp-admin/wp-sitemanager.php-device
    • > Network (severe)
    wp-admin/wp-sitemanager.php-device - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/wp-sitemanager.php-structure
    • > Network (severe)
    wp-admin/wp-sitemanager.php-structure - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/wp-sitemanager.php-cache
    • > Network (severe)
    wp-admin/wp-sitemanager.php-cache - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/wp-sitemanager.php-access
    • > Network (severe)
    wp-admin/wp-sitemanager.php-access - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: pager, cms, breadcrumb, mobile, sitemap...

wp-sitemanager/wp-sitemanager.php Passed 13 tests

The main PHP file in "WP SiteManager" ver. 1.2.5 adds more information about the plugin and also serves as the entry point for this plugin
103 characters long description:
WP SiteManager is an integrated package comprising of necessary functions for using WordPress as a CMS.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin4,553 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP85594114,075
CSS5225236
Smarty1200203
JavaScript15239

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity61.46
▷ Minimum class complexity3.00
▷ Maximum class complexity160.00
Average method complexity5.73
▷ Minimum method complexity1.00
▷ Maximum method complexity58.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes13
▷ Abstract classes00.00%
▷ Concrete classes13100.00%
▷ Final classes00.00%
Methods166
▷ Static methods31.81%
▷ Public methods11669.88%
▷ Protected methods00.00%
▷ Private methods5030.12%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
13 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
sitemap-styles/basic-1/images/list_mark_child03.png0.16KB0.11KB▼ 28.30%
sitemap-styles/simple-1/images/list_mark_child04.png0.15KB0.11KB▼ 25.64%
sitemap-styles/modern-1/images/list_mark_child01.png0.15KB0.10KB▼ 30.67%
sitemap-styles/modern-2/images/list_mark_child02.png0.16KB0.11KB▼ 28.83%
sitemap-styles/modern-2/images/list_mark_parent02.png0.14KB0.10KB▼ 29.79%