10% thin-content-manager

Code Review | Thin Content Manager

WordPress plugin Thin Content Manager scored10%from 54 tests.

About plugin

  • Plugin page: thin-content-manager
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-3.8.1
  • WordPress version: 6.3.1
  • First release: Jan 14, 2014
  • Latest release: Feb 4, 2014
  • Number of updates: 11
  • Update frequency: every 2.1 days
  • Top authors: msfreed (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,449 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Warning in wp-content/plugins/thin-content-manager/thin-content-manager.php+227
    Declaration of tcm_management_table::prepare_items($search) should be compatible with WP_List_Table::prepare_items()

Server metrics [RAM: ▼1.96MB] [CPU: ▼52.61ms] Passed 4 tests

An overview of server-side resources used by Thin Content Manager
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.444.31 ▼38.60
Dashboard /wp-admin2.05 ▼1.265.61 ▼44.00
Posts /wp-admin/edit.php2.05 ▼1.315.29 ▼42.75
Add New Post /wp-admin/post-new.php2.05 ▼3.844.64 ▼85.10
Media Library /wp-admin/upload.php2.05 ▼1.185.81 ▼29.01
Thin Content Manager /wp-admin/options-general.php?page=thin-content-manager2.055.21

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Thin Content Manager: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8313.66 ▼0.704.38 ▲2.5839.66 ▼3.05
Dashboard /wp-admin2,210 ▲255.86 ▲0.91111.57 ▲5.3242.07 ▼4.90
Posts /wp-admin/edit.php2,093 ▲12.04 ▼0.1143.20 ▼3.5333.68 ▼3.80
Add New Post /wp-admin/post-new.php1,536 ▲2223.10 ▲5.55704.82 ▲18.3454.57 ▼1.50
Media Library /wp-admin/upload.php1,395 ▲74.22 ▲0.08101.93 ▼25.0241.78 ▼8.71
Thin Content Manager /wp-admin/options-general.php?page=thin-content-manager1,1271.6928.4733.73

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The plugin did not uninstall gracefully
    • > Warning in wp-content/plugins/thin-content-manager/thin-content-manager.php+227
    Declaration of tcm_management_table::prepare_items($search) should be compatible with WP_List_Table::prepare_items()
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=thin-content-manager
    • > Warning in wp-content/plugins/thin-content-manager/thin-content-manager.php+227
    Declaration of tcm_management_table::prepare_items($search) should be compatible with WP_List_Table::prepare_items()
    • > GET request to /wp-admin/options-general.php?page=thin-content-manager
    • > Notice in wp-content/plugins/thin-content-manager/thin-content-manager.php+101
    Undefined index: s
    • > GET request to /wp-admin/options-general.php?page=thin-content-manager
    • > Notice in wp-content/plugins/thin-content-manager/thin-content-manager.php+283
    Undefined index: screen
    • > GET request to /wp-admin/options-general.php?page=thin-content-manager
    • > Notice in wp-content/plugins/thin-content-manager/thin-content-manager.php+283
    Trying to get property 'id' of non-object
    • > GET request to /wp-admin/options-general.php?page=thin-content-manager
    • > Notice in wp-content/plugins/thin-content-manager/thin-content-manager.php+283
    Undefined index: manage__screen_columns

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
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 need to be fixed:
  • Tags: Please delete some tags, you are using 16 tag instead of maximum 10
The official readme.txt might help

thin-content-manager/thin-content-manager.php 92% from 13 tests

The primary PHP file in "Thin Content Manager" version 1.0.1 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 150 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin307 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2679307

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.31
Average class complexity6.50
▷ Minimum class complexity1.00
▷ Maximum class complexity18.00
Average method complexity2.47
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods15
▷ Static methods320.00%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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 images were found in this plugin